{"author_url":"https://blog.hatena.ne.jp/yohhoy/","published":"2021-10-28 00:00:00","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eC\u306e\u6b21\u671fC2x(C23)\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30eaprintf\u95a2\u6570\u30d5\u30a1\u30df\u30ea\u3067\u306f\u3001\u5909\u63db\u6307\u5b9a\u5b50b\u306b\u3088\u308b2\u9032\u6570\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u51fa\u529b\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u308b\u3002\u540c\u6642\u306bscanf\u95a2\u6570\u30d5\u30a1\u30df\u30ea\u3084strtoT\u95a2\u6570\u3067\u306f0b\u30d7\u30ec\u30d5\u30a3\u30af\u30b9\u4ed8\u304d\u6587\u5b57\u5217\u5165\u529b\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u308b\u3002*1 // C2x #include <stdio.h> printf(\"%08b\", 42u); // \"00101010\" C++\u8a00\u8a9e C++20\u3067\u8ffd\u52a0\u3055\u308c\u305fstd::format\u306f\u30d0\u30a4\u30ca\u30ea\u66f8\u5f0f\u5316\u6307\u5b9a\u5b50b\u3092\u30b5\u30dd\u30fc\u30c8\u6e08\u307f\u3002 // C++20 #include <format> #include <iostream> std::cout << std::f\u2026","height":"190","url":"https://yohhoy.hatenadiary.jp/entry/20211028/p1","categories":["C","C++","C2x"],"title":"2\u9032\u6570\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u51fa\u529b in \u6a19\u6e96C","blog_title":"yohhoy\u306e\u65e5\u8a18","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20211028%2Fp1\" title=\"2\u9032\u6570\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u51fa\u529b in \u6a19\u6e96C - 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>","version":"1.0","width":"100%","provider_url":"https://hatena.blog","blog_url":"https://yohhoy.hatenadiary.jp/","provider_name":"Hatena Blog","author_name":"yohhoy","image_url":null}