#include #include #define SIZE 100 int main(void) { char str[SIZE], word[SIZE]; /* 手順(1)*/ strcpy(str, ""); /* 手順(2)*/ printf("文字列を入力してください:"); scanf("%s", word); strcat(str, word); /* 手順(3)*/ printf("これまでの文字列:[%s] (%d文字)\n", str, (int)strlen(str)); /* 手順 (4):以下を完成させよ */ return 0; }