{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmrradiology.hatenablog.jp%2Fentry%2F2020%2F04%2F08%2F112700\" title=\"C++ | 27 | \u30dd\u30a4\u30f3\u30bf\u306e\u5fdc\u7528 -  \u5b66\u751f\u5411\u3051\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580 | \u7121\u6599\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/M/MrRadiology/20200313/20200313122255.jpg","height":"190","version":"1.0","categories":["C++"],"provider_url":"https://hatena.blog","provider_name":"Hatena Blog","url":"https://mrradiology.hatenablog.jp/entry/2020/04/08/112700","published":"2020-04-08 11:27:00","blog_url":"https://mrradiology.hatenablog.jp/","blog_title":" \u5b66\u751f\u5411\u3051\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580 | \u7121\u6599","author_url":"https://blog.hatena.ne.jp/MrRadiology/","author_name":"MrRadiology","type":"rich","title":"C++ | 27 | \u30dd\u30a4\u30f3\u30bf\u306e\u5fdc\u7528","width":"100%","description":"\u30e9\u30f3\u30ad\u30f3\u30b0\u53c2\u52a0\u4e2d\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 [TOP] \u6b21>> Visual Studio\u3067\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001\u4ee5\u4e0b\u306ecpp\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u4e0b\u3055\u3044\u3002 \u3010PointerTest6.cpp\u3011 #include <iostream> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(){ char *s, buf[512]; std::cout << \"\u6587\u5b57\u5217\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\" << std::endl; std::cin >> buf; s = (char *)malloc( strlen(buf) + 1 ); s\u2026"}