{"blog_title":"N=1","description":"\u6f14\u7fd2 1-8 \u7a7a\u767d\u3001\u30bf\u30d6\u3001\u6539\u884c\u3092\u6570\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3051\u3002 #include <stdio.h> main() { int c, sp = 0, tb = 0, nl = 0; while ((c = getchar()) != EOF) { if (c == ' ') ++sp; if (c == '\\t') ++tb; if (c == '\\n') ++nl; } printf(\"space: %d, tab: %d:, newline %d\\n\", sp, tb, nl); } $ ./a.out space: 39, tab: 10:, newline 12","blog_url":"https://ishikuro.hateblo.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fishikuro.hateblo.jp%2Fentry%2F20061127%2F1164615438\" title=\"1-8.c - N=1\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","title":"1-8.c","type":"rich","published":"2006-11-27 17:17:18","author_url":"https://blog.hatena.ne.jp/ishn/","version":"1.0","url":"https://ishikuro.hateblo.jp/entry/20061127/1164615438","width":"100%","image_url":null,"author_name":"ishn","categories":["K&R2Exercise"]}