{"author_url":"https://blog.hatena.ne.jp/seinzumtode/","published":"2011-11-20 22:06:46","version":"1.0","image_url":null,"url":"https://seinzumtode.hatenadiary.jp/entry/20111120/1321794406","width":"100%","categories":["C/C++"],"author_name":"seinzumtode","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseinzumtode.hatenadiary.jp%2Fentry%2F20111120%2F1321794406\" title=\"\u7121\u540d\u5171\u7528\u4f53\u3092\u4f7f\u3046 - how to code something\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://seinzumtode.hatenadiary.jp/","height":"190","provider_name":"Hatena Blog","blog_title":"how to code something","description":"\u4e45\u3057\u3076\u308a\u306b\u610f\u5473\u304c\u5206\u304b\u3089\u306a\u3044\u3082\u306e\u306b\u51fa\u4f1a\u3063\u305f\u3002 //\u7121\u540d\u5171\u7528\u4f53\u3092\u8a66\u3059 #include <iostream> using namespace std; int main() { union { unsigned char bytes[8]; double value; }; int i; value = 859345.324; //cout << &bytes << \"\\n\"; //\u30c7\u30d0\u30c3\u30b0\u7528\u3002\u610f\u5473\u306f\u306a\u3044\u3002 //cout << &value << \"\\n\"; //double\u5024\u5185\u306e\u30d0\u30a4\u30c8\u3092\u8868\u793a\u3059\u308b for(i=0;i<8;i++) cout << (int) bytes[i] << \" \"; co\u2026","provider_url":"https://hatena.blog","title":"\u7121\u540d\u5171\u7528\u4f53\u3092\u4f7f\u3046","type":"rich"}