{"id":823,"date":"2023-02-08T01:22:25","date_gmt":"2023-02-08T01:22:25","guid":{"rendered":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823"},"modified":"2024-05-18T00:14:01","modified_gmt":"2024-05-18T00:14:01","slug":"c-%e8%a6%9a%e3%81%88%e6%9b%b8%e3%81%8d-%e3%83%9d%e3%82%a4%e3%83%b3%e3%82%bf","status":"publish","type":"post","link":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823","title":{"rendered":"C\/C++ \u899a\u3048\u66f8\u304d -\u30dd\u30a4\u30f3\u30bf-"},"content":{"rendered":"<p>\u3084\u306f\u308a\u300cC\/C++ \u306f\u96e3\u3057\u3044\u300d\u3068\u3044\u3046\u58f0\u3092\u3088\u304f\u805e\u304f\u3002<\/p>\n<p>\u5b9f\u969b\u3001\u6700\u8fd1\u3001twitter \u3067\u3053\u3093\u306a<a href=\"https:\/\/twitter.com\/AkibaChan3\/status\/1622887070950899713\">\u3084\u308a\u3068\u308a<\/a>\u304c\u3042\u3063\u305f\u3002<\/p>\n<p>\u30ef\u30a4\u3082\u6975\u3081\u308b\u30ec\u30d9\u30eb\u307e\u3067\u306f\u3044\u3063\u3066\u306a\u3044\u304c\u3001\u307e\u3042\u56f0\u3089\u306a\u3044\u7a0b\u5ea6\u306b\u306f\u4f7f\u3048\u308b\u3002<br \/>\n\u53e4\u4eca\u6771\u897f\u306e C \u3067\u66f8\u304b\u308c\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u305f\u3081\u306b\u60aa\u6226\u82e6\u95d8\u3057\u3066\u3044\u308b\u3046\u3061\u306b\u4f55\u3068\u306a\u304f\u899a\u3048\u3066\u3057\u307e\u3063\u305f\u3002<\/p>\n<p>C\/C++ \u306e\u7fd2\u5f97\u3092\u96e3\u3057\u304f\u3057\u3066\u3044\u308b\u539f\u56e0\u306e\u4e00\u3064\u306f\u3001\u30dd\u30a4\u30f3\u30bf\u3060\u308d\u3046\u3002<\/p>\n<h2>\u30dd\u30a4\u30f3\u30bf\u306e\u57fa\u672c<\/h2>\n<p>twitter \u3067\u3082\u66f8\u3044\u305f\u304c\u3001\u30dd\u30a4\u30f3\u30bf\u306e\u7c21\u5358\u306a\u30b5\u30f3\u30d7\u30eb\u3092\u4e0a\u3052\u3066\u304a\u304f\u3068\u3053\u3093\u306a\u611f\u3058\u304b\u3002<\/p>\n<pre><code>\/\/test.c\r\n#include &lt;stdio.h&gt;\r\n\r\nint main(){\r\n\r\n    \/\/int *a;\r\n    int* a;\r\n\r\n    int b=100;\r\n\r\n    a = &amp;b;\r\n\r\n    printf(\"%d\", *a);\r\n\r\n}<\/code><\/pre>\n<p>\u3053\u308c\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3002\u7d20\u76f4\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u306a\u3089\u3001\u3053\u3093\u306a\u611f\u3058\u304b\u3002<\/p>\n<pre><code>gcc -o test test.c<\/code><\/pre>\n<p>\u3053\u308c\u3067 test \u3068\u3044\u3046\u5b9f\u884c\u53ef\u80fd\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u3067\u304d\u308b\u3002<br \/>\n\u5b9f\u884c\u3055\u305b\u308b\u3068\u3001\u3082\u3061\u308d\u3093<\/p>\n<pre><code>100<\/code><\/pre>\n<p>\u3068\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<p>\u308f\u3056\u308f\u3056<\/p>\n<pre><code>int *a<\/code><\/pre>\n<p>\u3082\u66f8\u3044\u3066\u304a\u3044\u305f\u306e\u306f\u3001\u3053\u3046\u66f8\u3044\u3066\u3082\u7d50\u679c\u306f\u5909\u308f\u3089\u306a\u3044\u304b\u3089\u3002<br \/>\n\u305f\u3060\u3001\u3053\u3046\u66f8\u304f\u3068\u521d\u5b66\u8005\u306e\u7406\u89e3\u306f\u304c\u3053\u3093\u3068\u60aa\u304f\u306a\u308b\u3068\u3044\u3046\u5370\u8c61\u3092\u6301\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>\u306a\u3093\u3067\u3001\u3053\u3053\u3067\u308f\u304b\u3089\u306a\u304f\u306a\u308b\u304b\u3068\u3044\u3048\u3070\u3001\u304a\u305d\u3089\u304f\u3001\u5ba3\u8a00\u6642\u306e *a \u3068\u6700\u5f8c\u306e printf \u3067\uff08 a \u3067\u5dee\u3057\u793a\u3055\u308c\u3066\u3044\u308b\uff09\u5b9f\u969b\u306e\u6570\u5024\u3092\u8868\u793a\u3055\u305b\u308b *a \u3092\u6df7\u540c\u3057\u3066\u3057\u307e\u3046\u304b\u3089\u3060\u3068\u601d\u3046\u3002<\/p>\n<p>\u30dd\u30a4\u30f3\u30bf\u5909\u6570\u3068\u3044\u3048\u3069\u3082\u5909\u6570\u306b\u306f\u5909\u308f\u308a\u306a\u304f\u3001\u5ba3\u8a00\u304c\u5fc5\u8981\u3060\u3002\u3082\u3061\u308d\u3093\u3001\u578b\u3082\u5fc5\u8981\u3002<\/p>\n<p>\u4e0a\u306e\u5834\u5408\u306f\u3001int \u578b\u306e\u30dd\u30a4\u30f3\u30bf\u5909\u6570 a \u3092\u5ba3\u8a00\u3057\u305f\u3044\u306e\u3060\u304b\u3089\u3001int* \u3068\u66f8\u3044\u305f\u65b9\u304c\uff08\u5c11\u306a\u304f\u3068\u3082\u521d\u5b66\u8005\u306b\u3068\u3063\u3066\u306f\uff09\u6df7\u4e71\u306f\u6e1b\u308b\u3068\u601d\u3046\u3002<br \/>\n\u3042\u304f\u307e\u3067\u5909\u6570\u3068\u3057\u3066\u306f a \u306a\u306e\u3060\u304b\u3089\u3002<\/p>\n<p>\u901a\u5e38\u306e\u5909\u6570\u3068\u9055\u3046\u306e\u306f\u3001\u3053\u3053\u306b\u30a2\u30c9\u30ec\u30b9\u304c\u683c\u7d0d\u3055\u308c\u308b\u3068\u3044\u3046\u7279\u6b8a\u6027\u3060\u308d\u3046\u3002<\/p>\n<p>a \u81ea\u4f53\u306f\u30a2\u30c9\u30ec\u30b9\u306a\u306e\u3060\u304b\u3089\u3001\u305d\u306e\uff08\u30a2\u30c9\u30ec\u30b9\u3067\u793a\u3055\u308c\u3066\u3044\u308b\uff09\u5b9f\u4f53\u3092\u77e5\u308a\u305f\u3051\u308c\u3070\u4f55\u3089\u304b\u306e\u64cd\u4f5c\u304c\u5fc5\u8981\u3067\u3001\u30b7\u30f3\u30d7\u30eb\u306b * \u3092\u3064\u3051\u308b\u3002<br \/>\n* \u306f\u5ba3\u8a00\u6642\u306b\u3082\u4f7f\u308f\u308c\u308b\u306e\u3067\u3001\u4e21\u8005\u3092\u6df7\u540c\u3057\u3066\u3057\u307e\u3046\u306e\u3060\u308d\u3046\u3002<\/p>\n<h2>\u6b21\u306e\u96e3\u6240 -\u6587\u5b57\u5217\u3068\u914d\u5217-<\/h2>\n<p>\u30dd\u30a4\u30f3\u30bf\u306e\u6982\u5ff5\u304c\u5206\u304b\u3063\u3066\u3082\u305d\u308c\u3060\u3051\u3067\u306f\u4f7f\u3048\u306a\u3044\u3068\u601d\u3046\u3002<\/p>\n<p>\u3053\u308c\u306f\u304a\u305d\u3089\u304f C \u306e\u914d\u5217\u3084\u6587\u5b57\u5217\u306e\u6271\u3044\u306e\u305b\u3044\u3067\u3057\u3087\u3046\u3002<br \/>\n\u53d6\u308a\u6271\u3044\u3068\u3044\u3046\u304b\u7d04\u675f\u4e8b\u306d\u3002<\/p>\n<h3>\u914d\u5217<\/h3>\n<p>\u4e0a\u306e\u3088\u3046\u306a\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u306a\u6570\u5024\u578b\u306e\u5834\u5408\u3001\u30dd\u30a4\u30f3\u30bf\u3092\u4f7f\u3044\u305f\u3051\u308c\u3070 * \u3092\u4f7f\u3048\u3070\u3088\u304b\u3063\u305f\u304c\u3001\u914d\u5217\u3082\u540c\u3058\u3088\u3046\u306b\u3059\u308b\u3068\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3002<\/p>\n<p>\u3064\u307e\u308a<\/p>\n<p>int[] *a;<\/p>\n<p>\u3068\u3044\u3046\u8868\u73fe\u306f<strong>\u3057\u306a\u3044<\/strong>\u3002<br \/>\n\u3068\u3044\u3046\u304b\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u306f\u3001C \u3067\u306f\u3001\u914d\u5217 array[] \u306a\u3069\u3068\u66f8\u3044\u305f\u5834\u5408\u3001array \u3064\u307e\u308a<strong>\u914d\u5217\u5909\u6570\u540d\u81ea\u4f53\u306f\u305d\u306e\u5148\u982d\u8981\u7d20\u3078\u306e\u30dd\u30a4\u30f3\u30bf\u306b\u306a\u3063\u3066\u3044\u308b<\/strong>\u304b\u3089\u3060\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u793a\u3059\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<pre><code>#include &lt;stdio.h&gt;\r\n\r\nint main()\r\n{\r\n    \/\/int[] *p;\r\n    \r\n    int array[]={1,2};\r\n    \r\n    printf(\"%d\",*array);\r\n    \r\n    return(0);\r\n\r\n}<\/code><\/pre>\n<p>\u7d50\u679c\u306f 1 \u3002<br \/>\n<span style=\"font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;\">int[] *p \u3068\u3044\u3046\u5ba3\u8a00\u306f\u3001\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002<\/span><\/p>\n<p>\u3068\u3053\u308d\u3067\u3001\u3053\u3046\u3044\u3046\u66f8\u304d\u65b9\u306f\u3001\u8fd1\u5e74\u306e\u914d\u5217\u306b\u8981\u7d20\u6570\u304c\u7c21\u5358\u306b\u8ffd\u52a0\u3067\u304d\u305f\u308a\u578b\u63a8\u8ad6\u3057\u3066\u304f\u308c\u305f\u308a\u3059\u308b\u8a00\u8a9e\u306b\u6163\u308c\u305f\u4eba\u304b\u3089\u3059\u308b\u3068\u3001\u5947\u7570\u306b\u6620\u308b\u3088\u3046\u3060\u3002<br \/>\n\u5947\u7570\u3068\u3044\u3046\u304b\u4e0d\u5b89\u306b\u8fd1\u3044\u611f\u60c5\u3060\u308d\u3046\u304b\u3002<\/p>\n<p>array \u306b\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u305f\u3044\u5834\u5408\u3001\u3069\u3046\u3059\u308b\u3093\u3067\u3059\u304b\uff1f\u3068\u3002<\/p>\n<p>\u5b89\u5fc3\u3057\u3066\u6b32\u3057\u3044\u3002C \u3067\u306f\u3001\u539f\u5247\u3001\u8981\u7d20\u6570\u306e\u8ffd\u52a0\u306f<span style=\"font-size: 18pt;\"><strong>\u3067\u304d\u306a\u3044<\/strong><\/span>\u3002<br \/>\n\uff08C \u3067\u306e\u53ef\u5909\u9577\u914d\u5217\u306b\u95a2\u3057\u3066\u306f<a href=\"https:\/\/qiita.com\/raccy\/items\/bfcb62086c5f027d57b6\">\u3053\u3053\u3089<\/a>\u3042\u305f\u308a\u306e\u8a18\u4e8b\u53c2\u7167\uff09<\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u5834\u5408\u3001\u914d\u5217 array \u306e\u8981\u7d20\u6570\u3092\u77e5\u308a\u305f\u3051\u308c\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u306a\u3093\u3068\u3082\u9762\u5012\u304f\u3055\u3044\u66f8\u304d\u65b9\u306b\u306a\u308b\u3002<br \/>\n\uff08<a href=\"https:\/\/www.tutorialspoint.com\/compile_c_online.php\">\u3053\u3061\u3089<\/a>\u306e\u30aa\u30f3\u30e9\u30a4\u30f3 C \u30b3\u30f3\u30d1\u30a4\u30e9\u30fc\u30b5\u30a4\u30c8\u3092\u4f7f\u7528\uff09<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-925\" src=\"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/online-c-compiler-pointer.png\" alt=\"\" width=\"2212\" height=\"1154\" srcset=\"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/online-c-compiler-pointer.png 2212w, https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/online-c-compiler-pointer-300x157.png 300w, https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/online-c-compiler-pointer-1024x534.png 1024w, https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/online-c-compiler-pointer-768x401.png 768w, https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/online-c-compiler-pointer-1536x801.png 1536w, https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/online-c-compiler-pointer-2048x1068.png 2048w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>array \u81ea\u4f53\u306e\u30e1\u30e2\u30ea\u30b5\u30a4\u30ba\u3092 sizeof \u3067\u6c42\u3081\u3066\u3001\u305d\u308c\u3092\u8981\u7d20\u306e\u30d0\u30a4\u30c8\u6570\u3067\u5272\u3063\u3066\u3001\u3088\u3046\u3084\u304f\u8981\u7d20\u6570\u3092\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306b\u3057\u3066\u3082 unsigned \u7d61\u307f\u3067\u30ef\u30fc\u30cb\u30f3\u30b0\u51fa\u3066\u307e\u3059\u3051\u3069\u306d\u3002<\/p>\n<p>\u3064\u3044\u3067\u3067\u8a00\u3063\u3066\u304a\u304f\u3068 C\/C++ \u3067\u306f\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u3092\u8abf\u3079\u308b\u3068\u304d\u3082\uff08\u76f4\u63a5\u3053\u308c\u3092\u8abf\u3079\u308b\u3088\u3046\u306a\u95a2\u6570\u306e\u3088\u3046\u306a\u3082\u306e\u306f\u63d0\u4f9b\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\uff09\u540c\u69d8\u306b\u82e5\u5e72\u624b\u9593\u306e\u304b\u304b\u308b\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u53d6\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<p>\u3053\u306e<a href=\"https:\/\/twitter.com\/AkibaChan3\/status\/1636283211889385473\">\u30c4\u30a3<\/a>\u306a\u3069\u53c2\u7167\u3002<\/p>\n<h3>\u5927\u304d\u3055\u3092\u8abf\u3079\u308b\u3068\u304d\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981<\/h3>\n<p>\u306a\u304a\u3001\uff08\u521d\u5b66\u8005\u306f\u7d76\u5bfe\u6df7\u4e71\u3059\u308b\u3068\u601d\u3046\u304c\uff09array[] \u3068\u3044\u3046\u66f8\u304d\u65b9\u3068 *array \u3068\u3044\u3046\u66f8\u304d\u65b9\u306f C \u30b3\u30fc\u30c9\u5185\u3067\u53b3\u5bc6\u306b\u306f\u307e\u3063\u305f\u304f\u540c\u3058\u6319\u52d5\u3092\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3002<\/p>\n<p>\u3088\u304f\u77e5\u3089\u308c\u305f\u4f8b\u3068\u3057\u3066\u306f\u3001<span style=\"color: #00ccff;\"><strong>sizeof(*array) \u3068\u3059\u308b\u3068\u30dd\u30a4\u30f3\u30bf\u306e\u5927\u304d\u3055\u3092\u8fd4\u3059\u306e\u307f\u3067\u3001array \u81ea\u4f53\u306e\u5927\u304d\u3055\u3092\u8fd4\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044<\/strong><\/span>\u3002<\/p>\n<p>\u30d0\u30b0\u306e\u539f\u56e0\u3068\u306a\u308b\u3002<\/p>\n<h2>\u3061\u3087\u3063\u3068\u5b9f\u7528\u7684\u306a\u30b5\u30f3\u30d7\u30eb -\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u3092 2byte \u6bce\u306b\u8aad\u307f\u8fbc\u3080-<\/h2>\n<p>\u3053\u3053\u3089\u8fba\u306e\u4ed5\u69d8\u306f\u3084\u3084\u3053\u3057\u3044\u3068\u3053\u308d\u3060\u304c\u3001\u5b9f\u52d9\u7684\u306b\u306f\u4fbf\u5229\u306a\u3068\u304d\u304c\u3042\u308b\u3002<\/p>\n<p>\u3042\u308b\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u3063\u305f\u6642\u3001\u3053\u308c\u3092\u30d0\u30a4\u30c8\u914d\u5217\u3067\u306f<strong>\u306a\u304f<\/strong>\u30012byte \u3084 4byte \u306e\u6570\u5024\u914d\u5217\u3068\u3057\u3066\u8aad\u307f\u8fbc\u307f\u305f\u3044\u3068\u3044\u3046\u3053\u3068\u304c\u3088\u304f\u3042\u308b\u3002<br \/>\nC++ \u306b\u306a\u3063\u3066\u3057\u307e\u3046\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306f\u3088\u304f\u304a\u76ee\u306b\u304b\u304b\u308b\u3002<\/p>\n<pre><code>    const char* fname=\"(PathTo)\/sample.raw\";\r\n    std::ifstream ifs(fname, std::ios::binary);\r\n    ifs.seekg(0,std::ios::end);\r\n    uint64_t size = ifs.tellg();\r\n    ifs.seekg(0);\r\n\r\n    uint16_t *data16 = new uint16_t[size\/2];\r\n    ifs.read((char*)data16,size);\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306e\u30ad\u30e2\u306f<\/p>\n<pre><code>ifs.read((char*)data16,size)<\/code><\/pre>\n<p>\u3060\u3002<br \/>\nifstream::read() \u306f\u3001\u4ed5\u69d8\u7684\u306b\u306f\u30d0\u30a4\u30c8\u914d\u5217\u3057\u304b\u8aad\u307f\u8fbc\u3081\u306a\u3044\u304c\u30012byte \u914d\u5217 data16 \u306e\u30dd\u30a4\u30f3\u30bf\u3092\u30d0\u30a4\u30c8\u914d\u5217\u306e\u30dd\u30a4\u30f3\u30bf\u3067\u30ad\u30e3\u30b9\u30c8\u3059\u308b\u3053\u3068\u3067 2byte \u306e\u914d\u5217\u3068\u3057\u3066\u8aad\u307f\u8fbc\u3093\u3067\u304f\u308c\u308b\u3002<\/p>\n<p>\u3044\u3063\u305f\u3093\u3001\u30d0\u30a4\u30c8\u914d\u5217\u3068\u3057\u3066\u8aad\u307f\u8fbc\u3093\u3060\u5f8c\u30012byte \u306e\u914d\u5217\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3057\u76f4\u3057\u3066\u30fb\u30fb\u30fb\u3068\u3044\u3046\u8907\u96d1\u306a\u51e6\u7406\u306f<strong>\u5fc5\u8981\u306a\u3044<\/strong>\u3002<\/p>\n<p>\u3053\u308c\u3092\u3084\u308b\u305f\u3081\u306b\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u81ea\u4f53\u306e\u5927\u304d\u3055\uff08\u30d0\u30a4\u30c8\u6570\uff09\u3092\u4e88\u3081\u77e5\u3063\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308b\u304c\u3001\u305d\u306e\u51e6\u7406\u306f\u524d\u6bb5\u3067\u884c\u306a\u3063\u3066\u3044\u308b\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u5927\u304d\u3055\u4e00\u3064\u3068\u3063\u3066\u3082\u3053\u3046\u3044\u3046\u66f8\u304d\u65b9\u3092\u3059\u308b\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u30b3\u30fc\u30c9\u306e\u610f\u5473\u3092\u7406\u89e3\u3057\u305f\u3068\u304d\u306f\u3044\u305f\u304f\u611f\u52d5\u3057\u305f\u3002<\/p>\n<p>\u30dd\u30a4\u30f3\u30bf\u304c\u4f7f\u308f\u308c\u3066\u3044\u308b\u4f8b\u3068\u3057\u3066\u3088\u304f\u77e5\u3089\u308c\u305f\u3082\u306e\u3060\u304c\u3001\u3082\u3046\u4e00\u3064\u4f8b\u793a\u3057\u3066\u304a\u304f\u3068 main(argc, *argv[]) \u306e\u610f\u5473\u3082\u308f\u304b\u3063\u3066\u307f\u308b\u3068\u306a\u3093\u3068\u3044\u3046\u3053\u3068\u306f\u306a\u3044\u3002<\/p>\n<p>\u3053\u3061\u3089\u306e<a href=\"https:\/\/axia2016.blogspot.com\/2023\/04\/phorlix.html\">\u8a18\u4e8b<\/a>\u3042\u305f\u308a\u53c2\u7167\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1256\" src=\"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/c-pointer.png\" alt=\"\" width=\"900\" height=\"424\" srcset=\"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/c-pointer.png 900w, https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/c-pointer-300x141.png 300w, https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/c-pointer-768x362.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<h2>\u914d\u5217\u3092\u8210\u3081\u3066\u306f\u3044\u3051\u306a\u3044<\/h2>\n<p>\u3068\u3053\u308d\u3067\u3001\u30dd\u30a4\u30f3\u30bf\u306e\u8a71\u3092\u3059\u308b\u3068\u3001\u305d\u3053\u3060\u3051\u306b\u6ce8\u529b\u3057\u3066\u3057\u307e\u3044\u3001\u305d\u306e\u4ed6\u306e\u77e5\u8b58\u304c\u758e\u304b\u306b\u306a\u308a\u3084\u3059\u3044\u3002<\/p>\n<p>\u30dd\u30a4\u30f3\u30bf\u3068\u914d\u5217\u306e\u95a2\u9023\u304c\u6df1\u3044\u306e\u306f\u4e0a\u3067\u3082\u8ff0\u3079\u305f\u304c\u3001\u5b9f\u7528\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u306f\u4e21\u65b9\u306e\u77e5\u8b58\u3092\u7d61\u307e\u305b\u306a\u3044\u3068\u306b\u3063\u3061\u3082\u3055\u3063\u3061\u3082\u3044\u304b\u306a\u3044\u3002<\/p>\n<p>C \u306e\u914d\u5217\u3067\u77e5\u3063\u3066\u304a\u304b\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u77e5\u8b58\u306f\u3001<\/p>\n<p style=\"text-align: center;\"><strong>\u914d\u5217\u306f\u521d\u671f\u5316\u3057\u306a\u3044\u3068\u4f7f\u3048\u306a\u3044<\/strong><\/p>\n<p>\u3068\u3044\u3046\uff08\u30dd\u30a4\u30f3\u30bf\u306b\u6bd4\u3079\u308b\u3068\u3042\u307e\u308a\u6ce8\u610f\u3092\u6255\u308f\u308c\u306a\u3044\u3093\u3060\u304c\uff09\u8d85\u91cd\u8981\u4ed5\u69d8\u3002\u610f\u5916\u306b\u7406\u89e3\u3057\u3066\u306a\u3044\u4eba\u304c\u591a\u3044\u3002<\/p>\n<p>\u521d\u671f\u5316\u306b\u306f\u3001\u6700\u521d\u304b\u3089\u5168\u3066\u3092\u4ee3\u5165\u3059\u308b\u3068\u304b\u521d\u671f\u5316\u5b50\u3092\u4f7f\u3046\u65b9\u6cd5\u3068\u304b\u3044\u304f\u3064\u304b\u3084\u308a\u65b9\u304c\u3042\u308b\u3093\u3060\u304c\u3001\u6700\u8fd1\u306e\u30ef\u30a4\u306e\u597d\u307f\u306f memset \u306a\u3069\u3092\u4f7f\u3063\u3066\u3001\u6839\u3053\u305d\u304e\u30e1\u30e2\u30ea\u9818\u57df\u3092\u78ba\u4fdd\u3057\u3066\u304a\u304f\u65b9\u6cd5\u3002<\/p>\n<pre><code>uint16_t testarray[100];\r\nmemset(testarray, 0, sizeof(uint16_t)*100);<\/code><\/pre>\n<p>\u3042\u308b\u3044\u306f\uff08\u3084\u3084\u3053\u3057\u3044\u304c\u3001\u3053\u3061\u3089\u306e\u65b9\u304c\u5b9f\u7528\u7684\uff09\u3001<\/p>\n<pre><code>uint16_t *testarray = (uint16_t *)calloc(100, sizeof(uint16_t));\r\n\/\/ any code you want\r\nfree(testarray);<\/code><\/pre>\n<p>\u3053\u308c\u3067\u5168\u3066\u306e\u8981\u7d20\u306b 0 \u304c\u5165\u308b\u306e\u3067\u3001\u3053\u306e\u521d\u671f\u5316\u4ee5\u964d\u306f testarray[50] \u3060\u306e\u306b\u597d\u304d\u306a\u5024\u3092\u4ee3\u5165\u3067\u304d\u308b\u3002<\/p>\n<p>\u3082\u3061\u308d\u3093\u3001C \u306e\u914d\u5217\u306e\u4f7f\u3044\u65b9\uff08\u53ef\u5909\u9577\u304c\u8a31\u3055\u308c\u306a\u3044\uff06\u521d\u671f\u5316\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff09\u306f\u3001\u4e0d\u4fbf\u3092\u611f\u3058\u308b\u3053\u3068\u304c\u591a\u304f\u3001\u4f8b\u3048\u3070 MacOS\/iOS \u306e\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u306f\u3001\u914d\u5217\u306e\u307f\u3067\u653b\u3081\u3066\u3044\u304f\u3001\u3068\u3044\u3046\u3053\u3068\u306f\u306a\u3044\u3068\u601d\u3046\u3002<\/p>\n<p>\u306a\u304a\u3001\u6700\u8fd1\u3001\u5b9f\u611f\u3057\u3066\u3044\u308b\u306e\u306f\u3001NSData \u306e\u512a\u79c0\u6027\u3002<\/p>\n<p>\u9577\u3055\u304c\u4e0d\u5b9a\u306a\u91cd\u8981\u30c7\u30fc\u30bf\u306f NSData \u578b\u3067\u7ba1\u7406\u3057\u3001\u5177\u4f53\u7684\u306a\u51e6\u7406\u306f C \u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u4efb\u305b\u308b\u3068\u304b\u3084\u308b\u3068\u6df7\u4e71\u306f\u6e1b\u308b\u3002<\/p>\n<p>\u300c\u30dd\u30a4\u30f3\u30bf\u300d\u306f\u91cd\u8981\u3060\u304c\u3001\u30dd\u30a4\u30f3\u30bf\u3060\u3051\u3058\u3083\u30c0\u30e1\u3063\u3066\u8a71\u3067\u3059\u3002<\/p>\n<p>\u53c2\u8003\uff1a\u300e<a href=\"https:\/\/9cguide.appspot.com\/19-01.html\">\u914d\u5217\u3092\u81ea\u7531\u81ea\u5728\u306b\u4f5c\u308b<\/a>\u300f\u306a\u3069\u3002<br \/>\nC \u3067\u914d\u5217\u304c\u4f7f\u3044\u306b\u304f\u3044\u2192 malloc \u306a\u3069\u3067\u5bfe\u5fdc\u3001\u3068\u3044\u3046\u6d41\u308c\u304c\u7c21\u6f54\u306b\u8aac\u660e\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\nmalloc + memset = calloc \u3068\u3044\u3046\u611f\u899a\u306a\u306e\u3060\u304c\u3001\u5177\u4f53\u4f8b\u304c\u51fa\u305f\u3068\u304d\u306b\u3067\u3082\u8ffd\u8a18\u3057\u305f\u3044\u3002<br \/>\n\u3053\u3061\u3089\u306e<a href=\"https:\/\/www.sejuku.net\/blog\/25002\">\u8a18\u4e8b<\/a>\u3082\u3044\u3044\u3002<\/p>\n<p>\u6700\u521d\u306f\u30d4\u30f3\u3068\u3053\u306a\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u304c<\/p>\n<p style=\"text-align: center;\"><span style=\"font-size: 18pt; color: #ff0000;\"><strong>\u914d\u5217[\u5909\u6570]<\/strong><\/span><\/p>\n<p>\u3068\u306a\u3063\u3066\u3044\u308b\u914d\u5217\u3092\u6271\u3044\u305f\u3044\u3068\u304d\u306b\u3053\u3053\u3089\u8fba\u306e\u77e5\u8b58\u304c\u3042\u3084\u3075\u3084\u3060\u3068\u3001\u3046\u307e\u304f\u6271\u3048\u306a\u3044\u3002<\/p>\n<p>\u9006\u306b\u300cC \u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304d\u305f\u304b\u306a\uff1f\u300d\u3068\u5b9f\u611f\u3067\u304d\u308b\u306e\u306f\u3053\u3053\u3089\u8fba\u306e\u77e5\u8b58\u304c\u8eab\u306b\u3064\u3044\u3066\u304d\u305f\u3068\u304d\u3002<\/p>\n<h2>Xcode \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067 C\/C++ \u3067\u30d5\u30a1\u30a4\u30eb\u5165\u51fa\u529b\u3092\u6271\u3046\u3068\u304d<\/h2>\n<p>\u30a2\u30c3\u30d7\u30eb\u306e\u8a71\u304c\u51fa\u3066\u304d\u305f\u306e\u3067\u3001\u3064\u3044\u3067\u306b\u3002\u3002\u3002<\/p>\n<p>\u6700\u8fd1\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u3067\u306f Mac \u4f7f\u3046\u5834\u5408\u304c\u591a\u3044\u304c\u3001\u3053\u308c\uff08\u2193\uff09\u77e5\u3063\u3066\u306a\u3044\u3068\u30cf\u30de\u308b\u304b\u3082\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u30c7\u30d5\u30a9\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u306b\u5236\u9650\u304c\u3042\u308b<\/p>\n<p>BAD_ACCESS \u95a2\u4fc2\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3089\u3001\u8a2d\u5b9a\u3092\u898b\u76f4\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u53c2\u8003<\/h2>\n<p>\u300e<a href=\"https:\/\/phazor.info\/blog-ja\/?p=2677\">C \u8a00\u8a9e\u306b\u304a\u3051\u308b 16 \u9032\u8868\u8a18\u6587\u5b57\u5217\u21c4\u30d0\u30a4\u30ca\u30ea\u5217\u5909\u63db<\/a>\u300f\u3053\u306e\u914d\u5217\u64cd\u4f5c\u306f\u3057\u3070\u3057\u3070\u8a71\u984c\u306b\u306a\u308b\u304c\u3001\u3053\u308c\u3067\u6c7a\u5b9a\u304b\u306a\u3002<br \/>\nmagicarray \u3092\u4f7f\u3063\u305f\u30ed\u30b8\u30c3\u30af\u304c\u7f8e\u3057\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3084\u306f\u308a\u300cC\/C++ \u306f\u96e3\u3057\u3044\u300d\u3068\u3044\u3046\u58f0\u3092\u3088\u304f\u805e\u304f\u3002 \u5b9f\u969b\u3001\u6700\u8fd1\u3001twitter \u3067\u3053\u3093\u306a\u3084\u308a\u3068\u308a\u304c\u3042\u3063\u305f\u3002 \u30ef\u30a4\u3082\u6975\u3081\u308b\u30ec\u30d9\u30eb\u307e\u3067\u306f\u3044\u3063\u3066\u306a\u3044\u304c\u3001\u307e\u3042\u56f0\u3089\u306a\u3044\u7a0b\u5ea6\u306b\u306f\u4f7f\u3048\u308b\u3002 \u53e4\u4eca\u6771\u897f\u306e C \u3067\u66f8\u304b\u308c\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u305f &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;C\/C++ \u899a\u3048\u66f8\u304d -\u30dd\u30a4\u30f3\u30bf-&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":3,"featured_media":827,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[60],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C\/C++ \u899a\u3048\u66f8\u304d -\u30dd\u30a4\u30f3\u30bf- | \u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C\/C++ \u899a\u3048\u66f8\u304d -\u30dd\u30a4\u30f3\u30bf- | \u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011\" \/>\n<meta property=\"og:description\" content=\"\u3084\u306f\u308a\u300cC\/C++ \u306f\u96e3\u3057\u3044\u300d\u3068\u3044\u3046\u58f0\u3092\u3088\u304f\u805e\u304f\u3002 \u5b9f\u969b\u3001\u6700\u8fd1\u3001twitter \u3067\u3053\u3093\u306a\u3084\u308a\u3068\u308a\u304c\u3042\u3063\u305f\u3002 \u30ef\u30a4\u3082\u6975\u3081\u308b\u30ec\u30d9\u30eb\u307e\u3067\u306f\u3044\u3063\u3066\u306a\u3044\u304c\u3001\u307e\u3042\u56f0\u3089\u306a\u3044\u7a0b\u5ea6\u306b\u306f\u4f7f\u3048\u308b\u3002 \u53e4\u4eca\u6771\u897f\u306e C \u3067\u66f8\u304b\u308c\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u305f &hellip; &quot;C\/C++ \u899a\u3048\u66f8\u304d -\u30dd\u30a4\u30f3\u30bf-&quot; \u306e\u7d9a\u304d\u3092\u8aad\u3080\" \/>\n<meta property=\"og:url\" content=\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823\" \/>\n<meta property=\"og:site_name\" content=\"\u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Akiba.Chan.2021\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-08T01:22:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-18T00:14:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/lesson-C-pointer.png\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"571\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@AkibaChan3\" \/>\n<meta name=\"twitter:site\" content=\"@AkibaChan3\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79cb\u8449\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/#website\",\"url\":\"https:\/\/p-horlix.net\/umamusume-phazor\/\",\"name\":\"\u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011\",\"description\":\"\u30a6\u30de\u5a18\u95a2\u9023\u306e\u30cd\u30bf\u304c\u591a\u3044\u3067\u3057\u3087\u3046\u304b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823#primaryimage\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/lesson-C-pointer.png\",\"contentUrl\":\"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/lesson-C-pointer.png\",\"width\":900,\"height\":571},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823#webpage\",\"url\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823\",\"name\":\"C\/C++ \u899a\u3048\u66f8\u304d -\u30dd\u30a4\u30f3\u30bf- | \u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011\",\"isPartOf\":{\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823#primaryimage\"},\"datePublished\":\"2023-02-08T01:22:25+00:00\",\"dateModified\":\"2024-05-18T00:14:01+00:00\",\"author\":{\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/#\/schema\/person\/6a538594548c2ec36955811c54070308\"},\"breadcrumb\":{\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\/\/p-horlix.net\/umamusume-phazor\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C\/C++ \u899a\u3048\u66f8\u304d -\u30dd\u30a4\u30f3\u30bf-\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/#\/schema\/person\/6a538594548c2ec36955811c54070308\",\"name\":\"\u79cb\u8449\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/p-horlix.net\/umamusume-phazor\/#personlogo\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7f6d2dae0b83715553d92792c84890d9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7f6d2dae0b83715553d92792c84890d9?s=96&d=mm&r=g\",\"caption\":\"\u79cb\u8449\"},\"url\":\"https:\/\/p-horlix.net\/umamusume-phazor\/?author=3\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C\/C++ \u899a\u3048\u66f8\u304d -\u30dd\u30a4\u30f3\u30bf- | \u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823","og_locale":"ja_JP","og_type":"article","og_title":"C\/C++ \u899a\u3048\u66f8\u304d -\u30dd\u30a4\u30f3\u30bf- | \u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011","og_description":"\u3084\u306f\u308a\u300cC\/C++ \u306f\u96e3\u3057\u3044\u300d\u3068\u3044\u3046\u58f0\u3092\u3088\u304f\u805e\u304f\u3002 \u5b9f\u969b\u3001\u6700\u8fd1\u3001twitter \u3067\u3053\u3093\u306a\u3084\u308a\u3068\u308a\u304c\u3042\u3063\u305f\u3002 \u30ef\u30a4\u3082\u6975\u3081\u308b\u30ec\u30d9\u30eb\u307e\u3067\u306f\u3044\u3063\u3066\u306a\u3044\u304c\u3001\u307e\u3042\u56f0\u3089\u306a\u3044\u7a0b\u5ea6\u306b\u306f\u4f7f\u3048\u308b\u3002 \u53e4\u4eca\u6771\u897f\u306e C \u3067\u66f8\u304b\u308c\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u305f &hellip; \"C\/C++ \u899a\u3048\u66f8\u304d -\u30dd\u30a4\u30f3\u30bf-\" \u306e\u7d9a\u304d\u3092\u8aad\u3080","og_url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823","og_site_name":"\u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011","article_publisher":"https:\/\/www.facebook.com\/Akiba.Chan.2021\/","article_published_time":"2023-02-08T01:22:25+00:00","article_modified_time":"2024-05-18T00:14:01+00:00","og_image":[{"width":900,"height":571,"url":"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/lesson-C-pointer.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@AkibaChan3","twitter_site":"@AkibaChan3","twitter_misc":{"\u57f7\u7b46\u8005":"\u79cb\u8449","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/p-horlix.net\/umamusume-phazor\/#website","url":"https:\/\/p-horlix.net\/umamusume-phazor\/","name":"\u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011","description":"\u30a6\u30de\u5a18\u95a2\u9023\u306e\u30cd\u30bf\u304c\u591a\u3044\u3067\u3057\u3087\u3046\u304b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/p-horlix.net\/umamusume-phazor\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"ImageObject","@id":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823#primaryimage","inLanguage":"ja","url":"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/lesson-C-pointer.png","contentUrl":"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/lesson-C-pointer.png","width":900,"height":571},{"@type":"WebPage","@id":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823#webpage","url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823","name":"C\/C++ \u899a\u3048\u66f8\u304d -\u30dd\u30a4\u30f3\u30bf- | \u79cb\u8449\u3061\u3083\u3093\u306d\u308b\u3010\u5225\u9928\u3011","isPartOf":{"@id":"https:\/\/p-horlix.net\/umamusume-phazor\/#website"},"primaryImageOfPage":{"@id":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823#primaryimage"},"datePublished":"2023-02-08T01:22:25+00:00","dateModified":"2024-05-18T00:14:01+00:00","author":{"@id":"https:\/\/p-horlix.net\/umamusume-phazor\/#\/schema\/person\/6a538594548c2ec36955811c54070308"},"breadcrumb":{"@id":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/p-horlix.net\/umamusume-phazor\/?p=823"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=823#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/p-horlix.net\/umamusume-phazor"},{"@type":"ListItem","position":2,"name":"C\/C++ \u899a\u3048\u66f8\u304d -\u30dd\u30a4\u30f3\u30bf-"}]},{"@type":"Person","@id":"https:\/\/p-horlix.net\/umamusume-phazor\/#\/schema\/person\/6a538594548c2ec36955811c54070308","name":"\u79cb\u8449","image":{"@type":"ImageObject","@id":"https:\/\/p-horlix.net\/umamusume-phazor\/#personlogo","inLanguage":"ja","url":"https:\/\/secure.gravatar.com\/avatar\/7f6d2dae0b83715553d92792c84890d9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7f6d2dae0b83715553d92792c84890d9?s=96&d=mm&r=g","caption":"\u79cb\u8449"},"url":"https:\/\/p-horlix.net\/umamusume-phazor\/?author=3"}]}},"jetpack_featured_media_url":"https:\/\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/lesson-C-pointer.png","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":623,"url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=623","url_meta":{"origin":823,"position":0},"title":"Objective-C \u518d\u5165\u9580","date":"2023-01-20","format":false,"excerpt":"\u666e\u901a\u306b iPhone \u30a2\u30d7\u30ea\u3092\u4f7f\u3046\u306a\u3089 swift \u3067\u3044\u3044\u3093\u3060\u308d\u3046\u304c\u3001\u65e2\u5b58\u306e C\/C++ \u30e9\u30a4\u30d6\u30e9\u30ea\u2026","rel":"","context":"Objective-C","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/01\/objective-Cx900.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":935,"url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=935","url_meta":{"origin":823,"position":1},"title":"C++ \u306e -> \u3068 .","date":"2023-03-06","format":false,"excerpt":"\u30aa\u30f3\u30e9\u30a4\u30f3\u30b3\u30f3\u30d1\u30a4\u30e9\u30fc\u4fbf\u5229\u3067\u3059\u306d\u3002 \u3051\u3063\u3053\u3046\u4f7f\u3046\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u305d\u3046\u3044\u3048\u3070\u3001Objective-\u2026","rel":"","context":"C++","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/cpp900.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":799,"url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=799","url_meta":{"origin":823,"position":2},"title":"\u6c5f\u6dfb C++ \u672c\u3068\u672c\u5bb6\u30b9\u30c8\u30e9\u30a6\u30b9\u30c8\u30e9\u30c3\u30d7\u672c","date":"2022-12-10","format":false,"excerpt":"\u300e\u30d7\u30ed\u306b\u306a\u308b Java\u300f\u3067 Java \u306e\u6559\u79d1\u66f8\u7684\u306a\u66f8\u7c4d\u3092\u53d6\u308a\u4e0a\u3052\u305f\u306e\u3067\u3001\u4eca\u5ea6\u306f C++ \u3067\u3002 \u5f53\u521d\u3001\u2026","rel":"","context":"C++","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/02\/cpp900.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1271,"url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1271","url_meta":{"origin":823,"position":3},"title":"nullptr -> new -> delete in C++","date":"2023-05-07","format":false,"excerpt":"\u30cd\u30bf\u306b\u56f0\u3063\u305f\u3089\u3001\u30dd\u30a4\u30f3\u30bf\u8a71\u3002 \u4ee5\u524d\u306b\u30dd\u30a4\u30f3\u30bf\u3092\u7fd2\u5f97\u3059\u308b\u306b\u306f\u3001\u6982\u5ff5\u3060\u3051\u3067\u306f\u306a\u304f\u3001malloc -&gt\u2026","rel":"","context":"\u985e\u4f3c\u6295\u7a3f","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/05\/nullptr-new-del.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1637,"url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=1637","url_meta":{"origin":823,"position":4},"title":"cannot refer to declaration with an array type inside block \u30a8\u30e9\u30fc","date":"2024-05-17","format":false,"excerpt":"C \u306e\u30d6\u30ed\u30c3\u30af\u5185\uff08^ \u306b\u7d9a\u304f\u95a2\u6570\u306e\u3042\u308c\uff09\u3067\u306f\u3001\u914d\u5217\u3078\u306e\u53c2\u7167\u306f\u3067\u304d\u306a\u3044\u3089\u3057\u3044\u3002 \u308f\u304b\u308a\u3084\u3059\u3044\u4f8b\u304c\u3053\u3053\u306b\u2026","rel":"","context":"C","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2024\/05\/a-akiba-block-array.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":941,"url":"https:\/\/p-horlix.net\/umamusume-phazor\/?p=941","url_meta":{"origin":823,"position":5},"title":"Xcode \u3067 GUI \u30a2\u30d7\u30ea","date":"2023-03-08","format":false,"excerpt":"\u3053\u308c\u307e\u3067\u3001\u4e3b\u306b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304d\u305f\u3002 \u3042\u308b\u7a0b\u5ea6\u3001Objective-C \u306e\u69d8\u5b50\u3082\u308f\u304b\u3063\u2026","rel":"","context":"Objective-C","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/p-horlix.net\/umamusume-phazor\/wp-content\/uploads\/2023\/03\/cocoa-objective-c-gui-xcode.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=\/wp\/v2\/posts\/823"}],"collection":[{"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=823"}],"version-history":[{"count":23,"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=\/wp\/v2\/posts\/823\/revisions"}],"predecessor-version":[{"id":1649,"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=\/wp\/v2\/posts\/823\/revisions\/1649"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=\/wp\/v2\/media\/827"}],"wp:attachment":[{"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-horlix.net\/umamusume-phazor\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}