{"author_url":"https://blog.hatena.ne.jp/ringo6119/","height":"190","type":"rich","author_name":"ringo6119","blog_url":"https://ri.hateblo.jp/","categories":["C++"],"title":" new \u6f14\u7b97\u5b50\u306e\u4f8b\u5916","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fri.hateblo.jp%2Fentry%2F2012%2F07%2F10%2F005445\" title=\" new \u6f14\u7b97\u5b50\u306e\u4f8b\u5916 - \u30ea\u30b8\u30a7\u30af\u30c8\u3055\u308c\u307e\u3057\u305f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://ri.hateblo.jp/entry/2012/07/10/005445","blog_title":"\u30ea\u30b8\u30a7\u30af\u30c8\u3055\u308c\u307e\u3057\u305f","description":"\uff08\u3082\u3046\u3061\u3087\u3063\u3068\u3061\u3083\u3093\u3068\u66f8\u304f \u304b\u3082\u3057\u308c\u306a\u3044\uff09 new \u6f14\u7b97\u5b50\u3067\u30e1\u30e2\u30ea\u3092\u78ba\u4fdd\u3059\u308b\u3068\u304d\u306b\u6295\u3052\u3089\u308c\u308b\u4f8b\u5916\u306f\uff0c bad_alloc try{ int x = new int[100]; }catch(bad_alloc ba){ cout << \"\u30e1\u30e2\u30ea\u5272\u308a\u5f53\u3066\u30a8\u30e9\u30fc\" << endl; cout << ba.what(); return NULL; //exit(1); } // NULL\u304c\u8fd4\u3063\u3066\u304d\u305f\u6642\u7528 if(x == NULL){ cout << \"\u30e1\u30e2\u30ea\u5272\u308a\u5f53\u3066\u30a8\u30e9\u30fc\" << endl; return NULL; //exit(1); } \u30b3\u30f3\u30d1\u30a4\u30e9\u306b\u3088\u3063\u3066\u306f\u4f8b\u5916\u304c\u6295\u3052\u3089\u308c\u305a\uff0c\u305f\u3060\uff0c\u5358\u306bNULL\u2026","version":"1.0","published":"2012-07-10 00:54:45","image_url":null,"width":"100%","provider_url":"https://hatena.blog"}