{"id":25757,"date":"2024-12-28T13:58:42","date_gmt":"2024-12-28T04:58:42","guid":{"rendered":"http:\/\/www.tyosuke20xx.com\/blog\/?p=25757"},"modified":"2024-12-28T13:58:44","modified_gmt":"2024-12-28T04:58:44","slug":"%e3%82%bc%e3%83%ad%e3%81%8b%e3%82%89%e5%a7%8b%e3%82%81%e3%82%8bc%ef%bc%9a%e5%88%9d%e5%bf%83%e8%80%85%e3%81%8c%e7%9f%a5%e3%81%a3%e3%81%a6%e3%81%8a%e3%81%8d%e3%81%9f%e3%81%84%e5%9f%ba%e7%a4%8e","status":"publish","type":"post","link":"http:\/\/www.tyosuke20xx.com\/blog\/?p=25757","title":{"rendered":"\u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bC++\uff1a\u521d\u5fc3\u8005\u304c\u77e5\u3063\u3066\u304a\u304d\u305f\u3044\u57fa\u790e\u3068\u5fdc\u7528"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">C++\u3068\u306f\uff1f\u305d\u306e\u57fa\u790e\u3068\u7279\u5fb4<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">C++\u306e\u6982\u8981\u3068\u6b74\u53f2<\/h3>\n\n\n\n<p>\u3000C++\u306f1983\u5e74\u306b\u30d3\u30e3\u30fc\u30cd\u30fb\u30b9\u30c8\u30ed\u30f4\u30b9\u30c8\u30eb\u30c3\u30d7\u6c0f\u306b\u3088\u3063\u3066\u958b\u767a\u3055\u308c\u305f\u6c4e\u7528\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002\u3053\u306e\u8a00\u8a9e\u306f\u3001C\u8a00\u8a9e\u3092\u57fa\u76e4\u306b\u3057\u3064\u3064\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3084\u30b8\u30a7\u30cd\u30ea\u30c3\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306a\u3069\u306e\u9ad8\u5ea6\u306a\u624b\u6cd5\u3092\u5c0e\u5165\u3057\u3066\u3044\u307e\u3059\u3002C++\u306f\u305d\u306e\u5f8c\u306e\u6539\u826f\u3092\u91cd\u306d\u30011998\u5e74\u306b\u521d\u3081\u3066\u6a19\u6e96\u5316\uff08C++98\uff09\u3055\u308c\u307e\u3057\u305f\u3002\u305d\u306e\u5f8c\u3001C++11\u3001C++17\u3001C++20\u3068\u3044\u3063\u305f\u5f62\u3067\u898f\u683c\u304c\u5b9a\u671f\u7684\u306b\u66f4\u65b0\u3055\u308c\u3001\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u767b\u5834\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u8a00\u8a9e\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u30ec\u30d9\u30eb\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304b\u3089\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u307e\u3067\u5e45\u5e83\u3044\u5206\u91ce\u3067\u4f7f\u7528\u3055\u308c\u3001\u9ad8\u3044\u6027\u80fd\u3068\u67d4\u8edf\u6027\u3092\u6301\u3064\u8a00\u8a9e\u3068\u3057\u3066\u77e5\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">C\u8a00\u8a9e\u3068\u306e\u6bd4\u8f03\uff1a\u3069\u3093\u306a\u70b9\u304c\u7570\u306a\u308b\u306e\u304b\uff1f<\/h3>\n\n\n\n<p>\u3000C++\u306fC\u8a00\u8a9e\u3092\u30d9\u30fc\u30b9\u306b\u3057\u3066\u3044\u308b\u3082\u306e\u306e\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3084\u9ad8\u6c34\u6e96\u306e\u62bd\u8c61\u5316\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u70b9\u304c\u5927\u304d\u306a\u9055\u3044\u3067\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001C++\u3067\u306f\u300c\u30af\u30e9\u30b9\u300d\u3084\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3068\u3044\u3063\u305f\u69cb\u9020\u3092\u901a\u3058\u3066\u3001\u30b3\u30fc\u30c9\u306e\u518d\u5229\u7528\u6027\u3084\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001C++\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3084\u4f8b\u5916\u51e6\u7406\u3068\u3044\u3063\u305f\u30b8\u30a7\u30cd\u30ea\u30c3\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u305f\u3081\u306e\u6a5f\u80fd\u3082\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u4e00\u65b9\u3067\u3001C\u8a00\u8a9e\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u4f4e\u6c34\u6e96\u306a\u64cd\u4f5c\u306b\u5411\u3044\u3066\u304a\u308a\u3001\u9ad8\u5ea6\u306a\u5236\u5fa1\u304c\u53ef\u80fd\u306a\u305f\u3081\u3001\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u6700\u9069\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u305f\u3081\u3001C++\u306fC\u8a00\u8a9e\u306e\u67d4\u8edf\u6027\u3092\u5f15\u304d\u7d99\u304e\u3064\u3064\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8a2d\u8a08\u3068\u7ba1\u7406\u3092\u5bb9\u6613\u306b\u3059\u308b\u305f\u3081\u306e\u591a\u304f\u306e\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u305f\u8a00\u8a9e\u3068\u3044\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">C++\u306e\u4e3b\u306a\u7528\u9014\u3068\u5f37\u307f<\/h3>\n\n\n\n<p>\u3000C++\u306f\u3001\u305d\u306e\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u67d4\u8edf\u6027\u304b\u3089\u3001\u3055\u307e\u3056\u307e\u306a\u5206\u91ce\u3067\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3001\u30c7\u30d0\u30a4\u30b9\u30c9\u30e9\u30a4\u30d0\u3001\u30b2\u30fc\u30e0\u958b\u767a\u3001\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u51e6\u7406\u3001\u79d1\u5b66\u6280\u8853\u8a08\u7b97\u3001\u91d1\u878d\u5e02\u5834\u5411\u3051\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002C++\u306e\u5f37\u307f\u3068\u3057\u3066\u306f\u3001\u30cd\u30a4\u30c6\u30a3\u30d6\u30b3\u30fc\u30c9\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u308b\u305f\u3081\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u975e\u5e38\u306b\u9ad8\u3044\u3053\u3068\u3001\u307e\u305f\u30b7\u30b9\u30c6\u30e0\u306b\u5bc6\u63a5\u306b\u8fd1\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u53ef\u80fd\u3067\u3042\u308b\u70b9\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u6700\u65b0\u306e\u6a19\u6e96\u898f\u683c\u306b\u3088\u308a\u3001\u3088\u308a\u5b89\u5168\u304b\u3064\u52b9\u7387\u7684\u306a\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u304c\u53ef\u80fd\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3001C++\u306f\u521d\u5fc3\u8005\u304b\u3089\u30d9\u30c6\u30e9\u30f3\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u307e\u3067\u5e45\u5e83\u304f\u652f\u6301\u3055\u308c\u308b\u8a00\u8a9e\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u57fa\u672c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u69cb\u9020<\/h3>\n\n\n\n<p>\u3000C++\u306e\u57fa\u672c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u69cb\u9020\u306f\u308f\u304b\u308a\u3084\u3059\u3044\u8a2d\u8a08\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u4ee5\u4e0b\u306f\u5178\u578b\u7684\u306aC++\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3000 <code>#include &lt;iostream&gt; using namespace std; int main() { cout &lt;&lt; \"Hello, World!\" &lt;&lt; endl; return 0; }<\/code><\/p>\n\n\n\n<p>\u3000\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001<code>#include &lt;iostream&gt;<\/code>\u3067\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3057\u3001<code>cout<\/code>\u3092\u5229\u7528\u3057\u3066\u753b\u9762\u306b\u6587\u5b57\u5217\u3092\u51fa\u529b\u3057\u3066\u3044\u307e\u3059\u3002<code>main<\/code>\u95a2\u6570\u304c\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\u57fa\u672c\u7684\u306a\u69cb\u9020\u304c\u30b7\u30f3\u30d7\u30eb\u3067\u3042\u308b\u53cd\u9762\u3001\u5f37\u529b\u306a\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u6a5f\u80fd\u3084\u62e1\u5f35\u6027\u3082\u5099\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">C++\u3067\u3088\u304f\u4f7f\u3046\u30c4\u30fc\u30eb\u3068\u74b0\u5883<\/h3>\n\n\n\n<p>\u3000C++\u958b\u767a\u3092\u59cb\u3081\u308b\u305f\u3081\u306b\u306f\u3001\u9069\u5207\u306a\u30c4\u30fc\u30eb\u3068\u74b0\u5883\u3092\u6574\u3048\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u4e00\u822c\u7684\u306b\u3088\u304f\u4f7f\u7528\u3055\u308c\u308bC++\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u3068\u3057\u3066\u306f\u3001GCC\uff08GNU Compiler Collection\uff09\u3084Clang\u3001Microsoft Visual C++\u3001Intel C++ Compiler\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u958b\u767a\u74b0\u5883\uff08IDE\uff09\u3068\u3057\u3066\u306f\u3001Visual Studio\u3001CLion\u3001Code::Blocks\u3001Dev-C++\u306a\u3069\u304c\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30c4\u30fc\u30eb\u306f\u8c4a\u5bcc\u306a\u30c7\u30d0\u30c3\u30b0\u6a5f\u80fd\u3084\u88dc\u5b8c\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u3001\u958b\u767a\u306e\u52b9\u7387\u3092\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002\u307e\u305f\u3001\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5bfe\u5fdc\u306e\u6027\u8cea\u3092\u6d3b\u304b\u3057\u3001Windows\u3001Linux\u3001macOS\u306a\u3069\u306e\u3055\u307e\u3056\u307e\u306a\u74b0\u5883\u3067C++\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u958b\u767a\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">C++\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u790e\u3092\u5b66\u3076<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u5909\u6570\u3068\u57fa\u672c\u30c7\u30fc\u30bf\u578b<\/h3>\n\n\n\n<p>\u3000\u5909\u6570\u3068\u306f\u3001\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u306e\u7bb1\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3001C++\u3067\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u4e2d\u306e\u30c7\u30fc\u30bf\u306e\u7ba1\u7406\u306b\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002\u5909\u6570\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u578b\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u3053\u308c\u3092\u30c7\u30fc\u30bf\u578b\u3068\u547c\u3073\u307e\u3059\u3002C++\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u57fa\u672c\u30c7\u30fc\u30bf\u578b\u304c\u3042\u308a\u3001\u4ee3\u8868\u7684\u306a\u3082\u306e\u3068\u3057\u3066\u6574\u6570\u578b\uff08int\uff09\u3001\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b\uff08float, double\uff09\u3001\u6587\u5b57\u578b\uff08char\uff09\u3001\u30d6\u30fc\u30eb\u578b\uff08bool\uff09\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u4f8b\u3048\u3070\u3001\u6574\u6570\u3092\u683c\u7d0d\u3059\u308b\u306b\u306f<code>int number = 10;<\/code>\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002\u307e\u305f\u3001C++\u306f\u5f37\u3044\u9759\u7684\u578b\u4ed8\u3051\u306e\u7279\u5fb4\u3092\u6301\u3064\u305f\u3081\u3001\u5909\u6570\u3092\u5ba3\u8a00\u3059\u308b\u969b\u306b\u578b\u3092\u660e\u793a\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001<code>auto<\/code>\u3068\u3044\u3046\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306b\u578b\u3092\u63a8\u6e2c\u3055\u305b\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6f14\u7b97\u5b50\u3068\u5236\u5fa1\u6587\u306e\u4f7f\u3044\u65b9<\/h3>\n\n\n\n<p>\u3000C++\u306b\u306f\u3055\u307e\u3056\u307e\u306a\u6f14\u7b97\u5b50\u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u8db3\u3057\u7b97\u3084\u5f15\u304d\u7b97\u306a\u3069\u306e\u57fa\u672c\u7684\u306a\u7b97\u8853\u6f14\u7b97\u5b50\uff08+\u3001-\u3001*\u3001\/\u3001%\uff09\u306b\u52a0\u3048\u3001\u6bd4\u8f03\u6f14\u7b97\u5b50\uff08==\u3001!=\u3001&lt;\u3001&gt;\u306a\u3069\uff09\u3084\u8ad6\u7406\u6f14\u7b97\u5b50\uff08&amp;&amp;\u3001||\u3001!\uff09\u304c\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u6f14\u7b97\u5b50\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u67d4\u8edf\u306a\u51e6\u7406\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u5236\u5fa1\u6587\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u30d5\u30ed\u30fc\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306b\u7528\u3044\u3089\u308c\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u6761\u4ef6\u5206\u5c90\u306b\u4f7f\u7528\u3055\u308c\u308bif\u3001\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u884c\u3046for\u3084while\u30eb\u30fc\u30d7\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u4ee5\u4e0b\u306fif\u6587\u3068for\u6587\u306e\u7c21\u5358\u306a\u4f8b\u3067\u3059\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">if (x > 0) {\n    cout &lt;&lt; \"x\u306f\u6b63\u306e\u5024\u3067\u3059\u3002\" &lt;&lt; endl;\n}\n\nfor (int i = 0; i &lt; 5; i++) {\n    cout &lt;&lt; \"\u73fe\u5728\u306ei\u306e\u5024: \" &lt;&lt; i &lt;&lt; endl;\n}\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u95a2\u6570\u3068\u30b9\u30b3\u30fc\u30d7<\/h3>\n\n\n\n<p>\u3000\u95a2\u6570\u306f\u7279\u5b9a\u306e\u51e6\u7406\u3092\u307e\u3068\u3081\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u3082\u306e\u3067\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u518d\u5229\u7528\u6027\u3084\u53ef\u8aad\u6027\u3092\u9ad8\u3081\u307e\u3059\u3002C++\u3067\u306f\u3001\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u969b\u306b\u623b\u308a\u5024\u306e\u578b\u3001\u95a2\u6570\u540d\u3001\u5f15\u6570\u30ea\u30b9\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7c21\u5358\u306a\u95a2\u6570\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">int add(int a, int b) {\n    return a + b;\n}\n<\/pre>\n\n\n\n<p>\u3000\u95a2\u6570\u306e\u30b9\u30b3\u30fc\u30d7\u3068\u306f\u3001\u5909\u6570\u3084\u95a2\u6570\u304c\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306a\u7bc4\u56f2\u3092\u6307\u3057\u307e\u3059\u3002\u30b9\u30b3\u30fc\u30d7\u306b\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u30b9\u30b3\u30fc\u30d7\u3068\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30b3\u30fc\u30d7\u304c\u3042\u308a\u307e\u3059\u3002\u30ed\u30fc\u30ab\u30eb\u30b9\u30b3\u30fc\u30d7\u306f\u95a2\u6570\u5185\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u5909\u6570\u306b\u9069\u7528\u3055\u308c\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30b3\u30fc\u30d7\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u5168\u4f53\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u5909\u6570\u306b\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5165\u51fa\u529b\u64cd\u4f5c: cin\u3068cout<\/h3>\n\n\n\n<p>\u3000C++\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u304a\u3051\u308b\u57fa\u672c\u7684\u306a\u5165\u51fa\u529b\u64cd\u4f5c\u306b\u306f\u3001cin\u3068cout\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002cout\u3092\u4f7f\u7528\u3059\u308b\u3068\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u306b\u30c7\u30fc\u30bf\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001cin\u3092\u4f7f\u7528\u3059\u308b\u3068\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306e\u5165\u529b\u3092\u53d7\u3051\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u305d\u306e\u4f8b\u3067\u3059\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#include &lt;iostream>\nusing namespace std;\n\nint main() {\n    int age;\n    cout &lt;&lt; \"\u5e74\u9f62\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044: \";\n    cin >> age;\n    cout &lt;&lt; \"\u3042\u306a\u305f\u306e\u5e74\u9f62\u306f \" &lt;&lt; age &lt;&lt; \" \u6b73\u3067\u3059\u3002\" &lt;&lt; endl;\n    return 0;\n}\n<\/pre>\n\n\n\n<p>\u3000\u4e0a\u8a18\u4f8b\u3067\u306f\u3001cin\u3067\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u5165\u529b\u3092\u53d7\u3051\u53d6\u308a\u3001\u305d\u308c\u3092cout\u3067\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3057\u3066\u30c7\u30fc\u30bf\u3092\u52d5\u7684\u306b\u6271\u3046\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30e1\u30e2\u30ea\u7ba1\u7406\u3068\u30dd\u30a4\u30f3\u30bf\u306e\u6982\u5ff5<\/h3>\n\n\n\n<p>\u3000C++\u306e\u7279\u5fb4\u306e\u4e00\u3064\u3068\u3057\u3066\u3001\u30e1\u30e2\u30ea\u7ba1\u7406\u3092\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u304c\u8a73\u7d30\u306b\u5236\u5fa1\u3067\u304d\u308b\u70b9\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002\u3053\u308c\u306b\u306f\u30dd\u30a4\u30f3\u30bf\u304c\u5bc6\u63a5\u306b\u95a2\u308f\u3063\u3066\u3044\u307e\u3059\u3002\u30dd\u30a4\u30f3\u30bf\u3068\u306f\u3001\u4ed6\u306e\u5909\u6570\u306e\u30e1\u30e2\u30ea\u30a2\u30c9\u30ec\u30b9\u3092\u683c\u7d0d\u3059\u308b\u7279\u6b8a\u306a\u5909\u6570\u306e\u3053\u3068\u3067\u3059\u3002\u4ee5\u4e0b\u306f\u30dd\u30a4\u30f3\u30bf\u306e\u57fa\u672c\u7684\u306a\u4f7f\u7528\u4f8b\u3067\u3059\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">int x = 10;\nint* ptr = &amp;x; \/\/ x\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3057\u3066ptr\u306b\u683c\u7d0d\ncout &lt;&lt; \"x\u306e\u5024: \" &lt;&lt; x &lt;&lt; endl;\ncout &lt;&lt; \"ptr\u304c\u6307\u3059\u5024: \" &lt;&lt; *ptr &lt;&lt; endl; \/\/ \u30dd\u30a4\u30f3\u30bf\u7d4c\u7531\u3067x\u306e\u5024\u3092\u53d6\u5f97\n<\/pre>\n\n\n\n<p>\u3000C++\u3067\u306f\u3001<code>new<\/code>\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u52d5\u7684\u306b\u30e1\u30e2\u30ea\u3092\u5272\u308a\u5f53\u3066\u3001<code>delete<\/code>\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u305d\u306e\u30e1\u30e2\u30ea\u3092\u89e3\u653e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30e2\u30c0\u30f3C++\uff08C++11\u4ee5\u964d\uff09\u3067\u306f<code>smart pointers<\/code>\u306e\u5c0e\u5165\u306b\u3088\u308a\u3001\u624b\u52d5\u3067\u306e\u30e1\u30e2\u30ea\u7ba1\u7406\u306e\u5fc5\u8981\u6027\u304c\u5927\u5e45\u306b\u6e1b\u5c11\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3068C++<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u30af\u30e9\u30b9\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u57fa\u672c<\/h3>\n\n\n\n<p>\u3000\u30af\u30e9\u30b9\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001C++\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u76e4\u3068\u306a\u308b\u91cd\u8981\u306a\u6982\u5ff5\u3067\u3059\u3002\u30af\u30e9\u30b9\u306f\u30c7\u30fc\u30bf\u69cb\u9020\u3084\u64cd\u4f5c\uff08\u30e1\u30bd\u30c3\u30c9\uff09\u3092\u5b9a\u7fa9\u3059\u308b\u8a2d\u8a08\u56f3\u306e\u3088\u3046\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002\u4e00\u65b9\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u305d\u306e\u30af\u30e9\u30b9\u3092\u3082\u3068\u306b\u751f\u6210\u3055\u308c\u305f\u5b9f\u969b\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u3001\u30af\u30e9\u30b9\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u4f8b\u3048\u3070\u3001\u300c\u8eca\u300d\u3068\u3044\u3046\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3068\u3001\u305d\u308c\u3092\u3082\u3068\u306b\u300c\u81ea\u52d5\u8ecaA\u300d\u3084\u300c\u81ea\u52d5\u8ecaB\u300d\u3068\u3044\u3063\u305f\u5177\u4f53\u7684\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u30e2\u30c7\u30ea\u30f3\u30b0\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u306e\u518d\u5229\u7528\u6027\u3068\u69cb\u9020\u306e\u660e\u78ba\u5316\u304c\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002C++\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u3053\u308c\u3089\u306e\u30af\u30e9\u30b9\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u52b9\u7387\u7684\u306b\u6271\u3046\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3068\u30c7\u30b9\u30c8\u30e9\u30af\u30bf<\/h3>\n\n\n\n<p>\u3000\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3068\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u3001\u30af\u30e9\u30b9\u306e\u521d\u671f\u5316\u3068\u89e3\u653e\u3092\u884c\u3046\u7279\u5225\u306a\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u751f\u6210\u3055\u308c\u308b\u969b\u306b\u81ea\u52d5\u7684\u306b\u547c\u3073\u51fa\u3055\u308c\u3001\u521d\u671f\u5316\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30af\u30e9\u30b9\u5185\u306e\u30e1\u30f3\u30d0\u5909\u6570\u306e\u8a2d\u5b9a\u3084\u5fc5\u8981\u306a\u30ea\u30bd\u30fc\u30b9\u306e\u78ba\u4fdd\u306a\u3069\u304c\u542b\u307e\u308c\u307e\u3059\u3002\u4e00\u65b9\u3001\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u7834\u68c4\u3055\u308c\u308b\u969b\u306b\u81ea\u52d5\u7684\u306b\u547c\u3073\u51fa\u3055\u308c\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u89e3\u653e\u3084\u7d42\u4e86\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3053\u308c\u306b\u3088\u308a\u3001C++\u3067\u306f\u624b\u52d5\u3067\u30e1\u30e2\u30ea\u7ba1\u7406\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308b\u5834\u9762\u3067\u3082\u3001\u52b9\u7387\u7684\u304b\u3064\u5b89\u5168\u306b\u30ea\u30bd\u30fc\u30b9\u3092\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u7279\u306b\u52d5\u7684\u30e1\u30e2\u30ea\u3092\u6271\u3046\u5834\u5408\u3001\u3053\u308c\u3089\u306e\u4ed5\u7d44\u307f\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7d99\u627f\u3068\u591a\u614b\u6027\uff08\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0\uff09<\/h3>\n\n\n\n<p>\u3000\u7d99\u627f\u306f\u65e2\u5b58\u306e\u30af\u30e9\u30b9\u306e\u6a5f\u80fd\u3092\u5f15\u304d\u7d99\u304e\u3064\u3064\u3001\u65b0\u3057\u3044\u6a5f\u80fd\u3092\u8ffd\u52a0\u3067\u304d\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002C++\u3067\u306f\u3001\u5b50\u30af\u30e9\u30b9\u306f\u89aa\u30af\u30e9\u30b9\u304b\u3089\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u53d7\u3051\u7d99\u3050\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u30b3\u30fc\u30c9\u306e\u518d\u5229\u7528\u6027\u3068\u62e1\u5f35\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002\u4e00\u4f8b\u3068\u3057\u3066\u3001\u300c\u52d5\u7269\u300d\u3068\u3044\u3046\u89aa\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u52d5\u7269\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3057\u305f\u300c\u72ac\u300d\u3084\u300c\u732b\u300d\u3068\u3044\u3046\u5b50\u30af\u30e9\u30b9\u3092\u4f5c\u308b\u3053\u3068\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u591a\u614b\u6027\uff08\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0\uff09\u306f\u3001\u540c\u3058\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u7528\u3057\u3066\u3001\u7570\u306a\u308b\u52d5\u4f5c\u3092\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u73fe\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u52d5\u7684\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3057\u3066\u3001\u6d3e\u751f\u30af\u30e9\u30b9\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30e1\u30bd\u30c3\u30c9\u304c\u5b9f\u884c\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002C++\u3067\u306f\u3001\u4eee\u60f3\u95a2\u6570\uff08virtual\u95a2\u6570\uff09\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068STL\uff08\u6a19\u6e96\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\uff09\u306e\u6d3b\u7528<\/h3>\n\n\n\n<p>\u3000C++\u306b\u306f\u30b8\u30a7\u30cd\u30ea\u30c3\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u578b\u306b\u4f9d\u5b58\u3057\u306a\u3044\u6c4e\u7528\u7684\u306a\u30af\u30e9\u30b9\u3084\u95a2\u6570\u3092\u4f5c\u6210\u3067\u304d\u3001\u7570\u306a\u308b\u30c7\u30fc\u30bf\u578b\u306b\u3082\u5bfe\u5fdc\u3067\u304d\u308b\u67d4\u8edf\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u958b\u767a\u304c\u53ef\u80fd\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001\u6574\u6570\u3084\u6587\u5b57\u5217\u3068\u3044\u3063\u305f\u7570\u306a\u308b\u578b\u3092\u6271\u3046\u914d\u5217\u30af\u30e9\u30b9\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u52b9\u7387\u7684\u306b\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u307e\u305f\u3001\u6a19\u6e96\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\uff08STL\uff09\u306f\u3001C++\u306e\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u30bb\u30c3\u30c8\u306e1\u3064\u3067\u3001\u52b9\u7387\u7684\u306a\u30c7\u30fc\u30bf\u69cb\u9020\uff08\u4f8b\u3048\u3070\u3001\u30d9\u30af\u30bf\u30fc\u3084\u30ea\u30b9\u30c8\uff09\u3084\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\uff08\u30bd\u30fc\u30c8\u3084\u691c\u7d22\u306a\u3069\uff09\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068STL\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u958b\u767a\u306e\u52b9\u7387\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u8df5\u7684\u306aC++\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u4f8b\u5916\u51e6\u7406\u3068\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0<\/h3>\n\n\n\n<p>\u3000C++\u3067\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u4e2d\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u3092\u9069\u5207\u306b\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3068\u3057\u3066\u4f8b\u5916\u51e6\u7406\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002try\u3001catch\u3001throw\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc\u3092\u6355\u6349\u3057\u3001\u5bfe\u51e6\u3092\u7c21\u6f54\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u7570\u5e38\u6642\u306e\u6319\u52d5\u3092\u660e\u78ba\u306b\u3057\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u9014\u4e2d\u3067\u7570\u5e38\u7d42\u4e86\u3059\u308b\u3053\u3068\u3092\u9632\u3050\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u4f8b\u3048\u3070\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3084\u3001\u30e1\u30e2\u30ea\u4e0d\u8db3\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306a\u3069\u3001\u610f\u56f3\u3057\u306a\u3044\u72b6\u6cc1\u3078\u306e\u5bfe\u5fdc\u3092\u5bb9\u6613\u306b\u3057\u307e\u3059\u3002\u307e\u305f\u3001C++\u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306f\u591a\u304f\u306e\u4f8b\u5916\u30af\u30e9\u30b9\u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u9069\u5207\u306a\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u304c\u6c42\u3081\u3089\u308c\u308b\u5834\u9762\u306b\u304a\u3044\u3066\u6d3b\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30e2\u30c0\u30f3C++\u306e\u65b0\u6a5f\u80fd\uff08C++11\u4ee5\u964d\uff09<\/h3>\n\n\n\n<p>\u3000C++11\u4ee5\u964d\u3001\u8a00\u8a9e\u4ed5\u69d8\u306b\u591a\u304f\u306e\u6539\u826f\u304c\u52a0\u3048\u3089\u308c\u3001\u3088\u308a\u7c21\u6f54\u3067\u52b9\u7387\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u8a18\u8ff0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u65b0\u3057\u3044\u6a5f\u80fd\u3068\u3057\u3066\u3001\u30e9\u30e0\u30c0\u5f0f\u3001\u30b9\u30de\u30fc\u30c8\u30dd\u30a4\u30f3\u30bf\uff08std::shared_ptr\u3084std::unique_ptr\uff09\u3001constexpr\u3001auto\u578b\u63a8\u8ad6\u3001\u7bc4\u56f2\u30d9\u30fc\u30b9for\u30eb\u30fc\u30d7\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u7279\u306b\u30b9\u30de\u30fc\u30c8\u30dd\u30a4\u30f3\u30bf\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30de\u304c\u624b\u52d5\u3067\u30e1\u30e2\u30ea\u3092\u7ba1\u7406\u3059\u308b\u624b\u9593\u3092\u6e1b\u3089\u3057\u3001\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u306e\u30ea\u30b9\u30af\u3092\u8efd\u6e1b\u3057\u307e\u3059\u3002\u307e\u305f\u3001C++17\u3067\u306fstd::optional\u3084\u69cb\u9020\u5316\u675f\u7e1b\u3001C++20\u3067\u306f\u30b3\u30eb\u30fc\u30c1\u30f3\u3084\u30b3\u30f3\u30bb\u30d7\u30c8\uff08Concepts\uff09\u306a\u3069\u304c\u8ffd\u52a0\u3055\u308c\u3001\u3088\u308a\u76f4\u611f\u7684\u304b\u3064\u8868\u73fe\u529b\u8c4a\u304b\u306a\u8a18\u8ff0\u304c\u53ef\u80fd\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3053\u308c\u3089\u306e\u30e2\u30c0\u30f3C++\u306e\u6a5f\u80fd\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u4fdd\u5b88\u6027\u3084\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u305f\u9ad8\u54c1\u8cea\u306a\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30c7\u30d0\u30c3\u30b0\u3068\u6700\u9069\u5316\u306e\u57fa\u790e<\/h3>\n\n\n\n<p>\u3000C++\u306f\u9ad8\u6027\u80fd\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8a18\u8ff0\u3067\u304d\u308b\u4e00\u65b9\u3067\u3001\u30d0\u30b0\u306e\u767a\u898b\u3084\u89e3\u6d88\u304c\u4ed6\u306e\u8a00\u8a9e\u306b\u6bd4\u3079\u3066\u96e3\u3057\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30c7\u30d0\u30c3\u30b0\u306e\u57fa\u672c\u7684\u306a\u624b\u6cd5\u3092\u8eab\u306b\u7740\u3051\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u4e3b\u306a\u65b9\u6cd5\u3068\u3057\u3066\u3001\u30c7\u30d0\u30c3\u30ac\u3092\u6d3b\u7528\u3057\u3066\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u305f\u308a\u3001\u5909\u6570\u306e\u72b6\u614b\u3092\u76e3\u8996\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002\u4e3b\u306b\u4f7f\u7528\u3055\u308c\u308b\u30c4\u30fc\u30eb\u3068\u3057\u3066\u3001GDB\u3084Visual Studio\u306e\u30c7\u30d0\u30c3\u30b0\u6a5f\u80fd\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u30c7\u30d0\u30c3\u30b0\u3060\u3051\u3067\u306a\u304f\u3001\u6700\u9069\u5316\u3082\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\u30b3\u30fc\u30c9\u306e\u6027\u80fd\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u3001\u8a08\u7b97\u91cf\u3084\u5fc5\u8981\u306a\u30e1\u30e2\u30ea\u306e\u524a\u6e1b\u3092\u610f\u8b58\u3057\u305f\u8a2d\u8a08\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002C++\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306e\u6700\u9069\u5316\u304c\u5f37\u529b\u3067\u3042\u308a\u3001\u305d\u306e\u7279\u6027\u3092\u6d3b\u304b\u3057\u3066\u7121\u99c4\u306e\u306a\u3044\u30cd\u30a4\u30c6\u30a3\u30d6\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u307e\u305f\u3001\u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0\u30c4\u30fc\u30eb\u3092\u4f7f\u3048\u3070\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u306e\u7279\u5b9a\u3084\u6027\u80fd\u6539\u5584\u306e\u30d2\u30f3\u30c8\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u8a2d\u8a08\u3068\u30b3\u30fc\u30c9\u306e\u518d\u5229\u7528\u6027<\/h3>\n\n\n\n<p>\u3000C++\u3067\u5927\u898f\u6a21\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u8a2d\u8a08\u3059\u308b\u969b\u306b\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0(OOP)\u306e\u6982\u5ff5\u304c\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3068\u306a\u308a\u307e\u3059\u3002\u30af\u30e9\u30b9\u3084\u7d99\u627f\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u6a5f\u80fd\u306e\u62e1\u5f35\u3084\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304c\u5bb9\u6613\u306b\u306a\u308a\u3001\u30b3\u30fc\u30c9\u306e\u518d\u5229\u7528\u6027\u3092\u9ad8\u3081\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u307e\u305f\u3001\u30b8\u30a7\u30cd\u30ea\u30c3\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u7528\u3044\u3066\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u6c4e\u7528\u6027\u306e\u9ad8\u3044\u30b3\u30fc\u30c9\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3055\u3089\u306b\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3092\u901a\u3058\u3066\u30b3\u30fc\u30c9\u3092\u5206\u5272\u3057\u3001\u4ed6\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3082\u518d\u5229\u7528\u3067\u304d\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u6d3b\u7528\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001C++\u306e\u6a19\u6e96\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea(STL)\u306f\u518d\u5229\u7528\u6027\u306e\u9ad8\u3044\u512a\u308c\u305f\u4f8b\u3067\u3042\u308a\u3001\u958b\u767a\u8005\u304c\u52b9\u7387\u3088\u304f\u958b\u767a\u3092\u9032\u3081\u308b\u305f\u3081\u306e\u826f\u3044\u53c2\u8003\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u52b9\u7387\u7684\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u8a2d\u8a08\u306f\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u4fdd\u5b88\u6027\u3092\u5411\u4e0a\u3055\u305b\u3001\u8907\u96d1\u306a\u30b7\u30b9\u30c6\u30e0\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u7ba1\u7406\u3059\u308b\u9375\u3068\u306a\u308a\u307e\u3059\u3002\u8a2d\u8a08\u6bb5\u968e\u3067\u518d\u5229\u7528\u6027\u306b\u914d\u616e\u3059\u308b\u3053\u3068\u3067\u3001\u5b8c\u6210\u5f8c\u306e\u30b3\u30b9\u30c8\u524a\u6e1b\u306b\u3082\u7e4b\u304c\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C++\u3068\u306f\uff1f\u305d\u306e\u57fa\u790e\u3068\u7279\u5fb4 C++\u306e\u6982\u8981\u3068\u6b74\u53f2 \u3000C++\u306f1983\u5e74\u306b\u30d3\u30e3\u30fc\u30cd\u30fb\u30b9\u30c8\u30ed\u30f4\u30b9\u30c8\u30eb\u30c3\u30d7\u6c0f\u306b\u3088\u3063\u3066\u958b\u767a\u3055\u308c\u305f\u6c4e\u7528\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002\u3053\u306e\u8a00\u8a9e\u306f\u3001C\u8a00\u8a9e\u3092\u57fa\u76e4\u306b\u3057\u3064\u3064\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3084\u30b8\u30a7\u30cd\u30ea &hellip; <a href=\"http:\/\/www.tyosuke20xx.com\/blog\/?p=25757\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bC++\uff1a\u521d\u5fc3\u8005\u304c\u77e5\u3063\u3066\u304a\u304d\u305f\u3044\u57fa\u790e\u3068\u5fdc\u7528&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[69,4],"tags":[68,3],"class_list":["post-25757","post","type-post","status-publish","format-standard","hentry","category-c-3","category-programming","tag-c-2","tag-programming"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/25757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25757"}],"version-history":[{"count":1,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/25757\/revisions"}],"predecessor-version":[{"id":25758,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/25757\/revisions\/25758"}],"wp:attachment":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25757"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}