回答編集履歴
1
コードミスがありました。すみません。修正しました。
answer
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
int current_index = 0;
|
15
15
|
while (1)
|
16
16
|
{
|
17
|
-
scanf("%
|
17
|
+
scanf("%c", &input[current_index++]);
|
18
18
|
|
19
19
|
if (current_index >= current_size)
|
20
20
|
{
|
@@ -34,4 +34,8 @@
|
|
34
34
|
return 0;
|
35
35
|
}
|
36
36
|
```
|
37
|
-
どうでしょうか?
|
37
|
+
どうでしょうか?
|
38
|
+
|
39
|
+
#追記
|
40
|
+
コードミスがありました。すみません。修正しました。
|
41
|
+
scanf("%s", input[current_index++]); → scanf("%c", &input[current_index++]);
|