{"version":"1.0","provider_name":"Hatena Blog","blog_url":"https://nabetani.hatenadiary.com/","width":"100%","url":"https://nabetani.hatenadiary.com/entry/20051118/p2","title":"\u79c1\u306e\u77e5\u3089\u306a\u304b\u3063\u305f C++ \u3082\u3046\u3072\u3068\u3064","author_name":"Nabetani","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"published":"2005-11-18 00:00:02","image_url":null,"type":"rich","provider_url":"https://hatena.blog","height":"190","blog_title":"\u934b\u3042\u308a\u8c37\u3042\u308a","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnabetani.hatenadiary.com%2Fentry%2F20051118%2Fp2\" title=\"\u79c1\u306e\u77e5\u3089\u306a\u304b\u3063\u305f C++ \u3082\u3046\u3072\u3068\u3064 - \u934b\u3042\u308a\u8c37\u3042\u308a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"C++\u306e\u4e0d\u601d\u8b70\u306a\u4ed5\u69d8\u3092\u3082\u3046\u4e00\u3064\u767a\u898b\u3002\u3084\u306f\u308a C++ \u306f\u767a\u898b\u306b\u6e80\u3061\u3066\u3044\u308b\u3002 enum E{ EZero = 0 }; const int zero = 0; void test() { char * c; c = EZero; // \u3053\u308c\u306f\u30a8\u30e9\u30fc c = false; c = 1<0; c = '\\0'; c = 0; // \u3053\u308c\u306f\u6b63\u3057\u3044\u306b\u6c7a\u307e\u3063\u3066\u3044\u308b\u3002 c = zero; // \u3053\u308c\u3082\u6b63\u3057\u3044\u306b\u6c7a\u307e\u3063\u3066\u3044\u308b\u3002 c = 1/3; // \u6b63\u3057\u3044\u3051\u3069\u3002 c = 0UL; c = 0.0; // \u3053\u308c\u306f\u30a8\u30e9\u30fc c = static_cast<int>( 0.1 ); }\u79c1\u306b\u306f\u3084\u3084\u610f\u5916\u306a\u4ed5\u69d8\u306a\u3093\u3060\u304c\u3001\u300c\u3053\u2026","author_url":"https://blog.hatena.ne.jp/Nabetani/"}