{"id":447,"date":"2003-09-19T00:00:00","date_gmt":"2003-09-18T15:00:00","guid":{"rendered":"http:\/\/localhost\/blog\/?p=435"},"modified":"2014-08-14T15:09:19","modified_gmt":"2014-08-14T06:09:19","slug":"c%e3%81%ae%e8%a3%8f%ef%bc%9f%e4%bb%95%e6%a7%98","status":"publish","type":"post","link":"https:\/\/denasu.com\/blog\/2003\/09\/diary447","title":{"rendered":"C++\u306e\u88cf\uff1f\u4ed5\u69d8"},"content":{"rendered":"<p>\u677e4\u6c0f\u304c\u66f8\u3044\u305fC++\u30b3\u30fc\u30c9\u3002\u3061\u3087\u3063\u3068\u5909\u3048\u3066\u3042\u308b\u3051\u3069\u3002<\/p>\n<pre class=\"brush:cpp\">\r\nclass A\r\n{\r\npublic:\r\n    void f();\r\n};\r\n\r\nvoid A::f()\r\n{\r\n    std::cout << \"hello.\" << std::endl;\r\n}\r\n\r\nint main()\r\n{\r\n    A a = NULL;\r\n    a->f();\r\n\r\n return 0;\r\n}\r\n<\/pre>\n<p>\u4e00\u898b NULL Pointer Exception \u304c\u767a\u751f\u3057\u305d\u3046\u3060\u304c\uff0cVC \u3067\u3082 GCC \u3067\u3082 BCC \u3067\u3082\u901a\u308b\u3002\u30a2\u30bb\u30f3\u30d6\u30ea\u30ec\u30d9\u30eb\u3067\u898b\u308b\u3068\u7d76\u5bfe\u30a2\u30c9\u30ec\u30b9\u3067\u95a2\u6570\u3092\u547c\u3093\u3067\u3044\u308b\u3002\u306a\u306e\u3067\u4eee\u60f3\u95a2\u6570\u3060\u3063\u305f\u308a\u3059\u308b\u3068\u30a2\u30a6\u30c8\u3002\u30b3\u30f3\u30d1\u30a4\u30e9\u4f9d\u5b58\u307d\u3044\u3051\u3069\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u677e4\u6c0f\u304c\u66f8\u3044\u305fC++\u30b3\u30fc\u30c9\u3002\u3061\u3087\u3063\u3068\u5909\u3048\u3066\u3042\u308b\u3051\u3069\u3002 class A { public: void f(); }; void A::f() { std::cout<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[22],"class_list":["post-447","post","type-post","status-publish","format-standard","hentry","category-programming","tag-win32"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4ZThs-7d","_links":{"self":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/comments?post=447"}],"version-history":[{"count":2,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/447\/revisions"}],"predecessor-version":[{"id":2481,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/447\/revisions\/2481"}],"wp:attachment":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/media?parent=447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/categories?post=447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/tags?post=447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}