{"type":"rich","url":"https://yohhoy.hatenadiary.jp/entry/20120711/p1","height":"190","author_url":"https://blog.hatena.ne.jp/yohhoy/","categories":["C++"],"provider_name":"Hatena Blog","image_url":null,"width":"100%","description":"\u6a19\u6e96\u5165\u51fa\u529b\u30b9\u30c8\u30ea\u30fc\u30e0(cin, cout\u7b49)\u306e\u5165\u51fa\u529b\u5148\u3092\u4e00\u6642\u7684\u306b\u5909\u66f4\u3059\u308b\u30d8\u30eb\u30d1\u30af\u30e9\u30b9\u3002 std::ifstream(\"input.txt\"); ioredirector rd0(std::cin, ifs); std::string s; while (std::getline(std::cin, s)) /* input.txt\u304b\u30891\u884c\u8aad\u8fbc */; // cout\u3078\u51fa\u529b... \u6a19\u6e96\u51fa\u529b\u3078 // cerr\u3078\u51fa\u529b... \u6a19\u6e96\u30a8\u30e9\u30fc\u51fa\u529b\u3078 { std::ofstream ofs(\"log.txt\"); ioredirector rd1(std::cout, ofs), rd2(std::cerr,\u2026","blog_title":"yohhoy\u306e\u65e5\u8a18","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20120711%2Fp1\" title=\"\u6a19\u6e96\u5165\u51fa\u529b\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30b7\u30e7\u30f3 - 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>","author_name":"yohhoy","published":"2012-07-11 00:00:00","title":"\u6a19\u6e96\u5165\u51fa\u529b\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30b7\u30e7\u30f3","blog_url":"https://yohhoy.hatenadiary.jp/","version":"1.0"}