2018-07-06から1日間の記事一覧
auです。 今回はscanf関数でスペースの入った文字を出力してみます。 普通に書こうとすると以下のようになると思います。 #include <stdio.h> int main(void) { char c[30]; printf("Please write words\n"); scanf("%s", c); printf("c = %s\n", c); printf("Please </stdio.h>…
auです。 今回はscanf関数でスペースの入った文字を出力してみます。 普通に書こうとすると以下のようになると思います。 #include <stdio.h> int main(void) { char c[30]; printf("Please write words\n"); scanf("%s", c); printf("c = %s\n", c); printf("Please </stdio.h>…