{"published":"2008-05-31 23:37:34","description":"C\u3068C++\u3063\u3066\u5168\u7136\u9055\u3046\u3093\u3060\u306a\u3041\u3068\u611f\u3058\u308bC++\u4e8c\u9031\u9593\u76ee\u304f\u3089\u3044\u3002\u30ad\u30e2\u30a4\u306a\u30b3\u30ec\u3002 #include <iostream> void swap(int &a, int &b) { a ^= b; b ^= a; a ^= b; } int main() { int a = 1; int b = 2; swap(a, b); return 0; } \u30dd\u30a4\u30f3\u30bf\u306a\u306e\u304b\u5024\u306a\u306e\u304b\u306f\u3063\u304d\u308a\u308f\u304b\u3093\u306d\u3047\u5974\u3060\u306a\u3002swap!!!!\u304f\u3089\u3044\u4ed8\u3051\u3066\u304a\u304b\u306a\u3044\u3068\u30ef\u30ab\u30f3\u30cd\u30a7\u30e8\u3002","provider_url":"https://hatena.blog","version":"1.0","image_url":null,"categories":["C++"],"width":"100%","provider_name":"Hatena Blog","type":"rich","url":"https://boxnos.hatenablog.com/entry/20080531/1212244654","blog_title":"\u30dc\u30af\u30ce\u30b9","title":" \u53c2\u7167\u30d1\u30e9\u30e1\u30fc\u30bf","author_name":"tanakaBox","author_url":"https://blog.hatena.ne.jp/tanakaBox/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20080531%2F1212244654\" title=\" \u53c2\u7167\u30d1\u30e9\u30e1\u30fc\u30bf - \u30dc\u30af\u30ce\u30b9\" 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://boxnos.hatenablog.com/"}