{"author_name":"yohhoy","version":"1.0","image_url":null,"provider_url":"https://hatena.blog","blog_title":"yohhoy\u306e\u65e5\u8a18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20120406%2Fp1\" title=\"C++\u6a19\u6e96I/O\u30b9\u30c8\u30ea\u30fc\u30e0\u3068\u6697\u9ed9\u578b\u5909\u63db\u306e\u843d\u3068\u3057\u7a74 - yohhoy\u306e\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>","title":"C++\u6a19\u6e96I/O\u30b9\u30c8\u30ea\u30fc\u30e0\u3068\u6697\u9ed9\u578b\u5909\u63db\u306e\u843d\u3068\u3057\u7a74","url":"https://yohhoy.hatenadiary.jp/entry/20120406/p1","categories":["C++"],"author_url":"https://blog.hatena.ne.jp/yohhoy/","published":"2012-04-06 00:00:00","width":"100%","provider_name":"Hatena Blog","type":"rich","blog_url":"https://yohhoy.hatenadiary.jp/","description":"C++\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306eI/O\u30b9\u30c8\u30ea\u30fc\u30e0\u306b\u3042\u308b\u6697\u9ed9\u306e\u30e6\u30fc\u30b6\u5b9a\u7fa9\u5909\u63db(user-defined conversion)\u306e\u305b\u3044\u3067\u3001\u30d7\u30ed\u30b0\u30e9\u30de\u304c\u610f\u56f3\u3057\u306a\u3044\u52d5\u4f5c\u3092\u5f15\u304d\u8d77\u3053\u3059\u30b1\u30fc\u30b9\u304c\u3042\u308b\u3002 #include <iostream> int main() { std::cout << std::cin; // ?? } \u4e0a\u8a18\u30b3\u30fc\u30c9\u306f\u6b63\u5e38\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u53ef\u80fd\u3002gcc 4.6.3\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u3068\u304d\u306e\u5b9f\u884c\u7d50\u679c\u306e\u4f8b\u3002 $ g++ -W -Wall -Wextra -pedantic source.cpp $ ./a.out 0x6c504048 \u3053\u3053\u3067\u306fbasic_istream<char>\u578b\u306ecin\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u2026","height":"190"}