{"image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20110211%2F1297431882\" title=\"\u5217\u6319\u578b\u3092\u6dfb\u3048\u5b57\u306b\u4f7f\u3046 - \u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://toburau.hatenablog.jp/","description":"\u5217\u6319\u578b\u306f\u5358\u306a\u308bint\u306a\u306e\u3067\u6dfb\u3048\u5b57\u306b\u4f7f\u3048\u308b\u3002 enum Object { OBJ_NONE, OBJ_PLAYER, OBJ_ENEMY, OBJ_ITEM, OBJ_MAX }; Object obj[10]; const char* name[] = { \"NONE\",\"PLAYER\",\"ENEMY\",\"ITEM\" }; for(int i=0; i<10; i++) { Object o = obj[i]; cout << name[ o ] << endl; } \u305f\u3057\u304b\u306b\u8a00\u308f\u308c\u3066\u307f\u308c\u3070\u305d\u306e\u3068\u304a\u308a\u3002\u5217\u6319\u578b\u306fint\u306a\u306e\u3067\u6dfb\u3048\u5b57\u306b\u3082\u4f7f\u3048\u308b\u3002\u81ea\u5206\u306f\u307b\u3068\u3093\u3069switch\u6587\u3067\u3057\u304b\u4f7f\u3063\u3066\u306a\u304b\u3063\u305f\u3002sw\u2026","width":"100%","categories":["C++"],"type":"rich","version":"1.0","url":"https://toburau.hatenablog.jp/entry/20110211/1297431882","blog_title":"\u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18","published":"2011-02-11 22:44:42","title":"\u5217\u6319\u578b\u3092\u6dfb\u3048\u5b57\u306b\u4f7f\u3046","height":"190","author_name":"toburau","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/toburau/","provider_url":"https://hatena.blog"}