{"width":"100%","version":"1.0","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","height":"190","description":"C++\u6a19\u6e96\u306eIOStream\u306b\u306f\u3001std::unitbuf\u30d5\u30e9\u30b0\u3068\u3044\u3046\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u51fa\u529b\u30b9\u30c8\u30ea\u30fc\u30e0\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u7e70\u308a\u8fd4\u3057\u51fa\u529b\u3092\u884c\u3046\u51e6\u7406\u3067\u3001\u51fa\u529b\u3059\u308b\u305f\u3073\u306b\u30d5\u30e9\u30c3\u30b7\u30e5\u304c\u884c\u308f\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 #include <fstream> int main() { std::ofstream file(\"a.txt\"); file << std::unitbuf; for (int i = 0; i < 10; ++i) { file << i; // \u51fa\u529b\u3059\u308b\u305f\u3073\u306b\u30d5\u30e9\u30c3\u30b7\u30e5\u3055\u308c\u308b } } \u3053\u308c\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3068\u540c\u3058\u610f\u5473\u306b\u306a\u308a\u307e\u3059\uff1a #include <fstream> int main() \u2026","type":"rich","title":" \u51fa\u529b\u3059\u308b\u305f\u3073\u306b\u30d5\u30e9\u30c3\u30b7\u30e5\u3059\u308b","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20121030%2F1351580644\" title=\" \u51fa\u529b\u3059\u308b\u305f\u3073\u306b\u30d5\u30e9\u30c3\u30b7\u30e5\u3059\u308b - Faith and Brave - C++\u3067\u904a\u307c\u3046\" 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":"faith_and_brave","blog_url":"https://faithandbrave.hateblo.jp/","url":"https://faithandbrave.hateblo.jp/entry/20121030/1351580644","provider_url":"https://hatena.blog","categories":["C++"],"provider_name":"Hatena Blog","published":"2012-10-30 16:04:04","image_url":null,"author_url":"https://blog.hatena.ne.jp/faith_and_brave/"}