ã¨ãããã daytime ã®ã¯ã©ã¤ã¢ã³ã ã»ã¨ãã©ããã®åçµ #include <iostream> #include <boost/asio.hpp> int main () { // io_service ãä»ã㦠OS ã® IO ã使ã boost::asio::io_service io_service; // ã½ã±ãããä½ã boost::asio::ip::tcp::socket socket(io_service); // åå解決ããã // ï¼ãã¹ãåã¨ãµã¼ãã¹åããã IP ã¨ãã¼ããæ±ããï¼ std::cout << "resolving hostname ..." << std::endl; boost::asio::ip::tcp::resolver resolver(io_service); boost::asio::ip::tcp::resolver::qu
ç¶ã»å®è¡æã®ã¯ã©ã¹å¤å® 以åãå®è¡æã®ã¯ã©ã¹å¤å®ã¨ãã¦ã MFCã®å ´åã«ä½¿ããæ¹æ³ãç´¹ä»ãã¾ããã ä»åã¯ããã£ã¨æ±ç¨çãªãtypeidã dynamic_castã使ãæ¹æ³ãç´¹ä»ãã¾ãã ããã§ã¯æ¦è¦ããç´¹ä»ãã¾ããã®ã§ãå®éã«ä½¿ã£ã¦ã¿ãå ´åã«ã¯ã³ã³ãã¤ã©ã¼ã® ä»å±ææ¸çãã覧ãã ããã ååã調ã¹ã ã¾ãã¯ãåãæååã¨ãã¦åå¾ããæ¹æ³ãå¤æ°varããã£ãã¨ããã¨ã const char * ty = typeid(var).name(); ã¨ããå ·åã«æ¸ããã¨ãã§ãã¾ããtyã«ã¯ã "class CHoge *"ãªã©ã¨ãã£ãå ·åã« åå(ããã§ã¯ã¯ã©ã¹å)ãå ¥ãã¾ãã ãã£ã¨ããåãæ³å®éãã§ããã確èªããã®ã« assert(strcmp(ty, "class CHoge *") == 0); ã¨æ¸ãã®ã¯ãããã§ããããããã£ã¨ãã¿ãã£ãåã§ãæååã§ã®æ¸ã表ãæ¹ã å¹¾éãããããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}