質問編集履歴
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -51,3 +51,31 @@
|
|
51
51
|
実行コマンド
|
52
52
|
|
53
53
|
./test | ./test.sh
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
test.c(修正後)
|
58
|
+
|
59
|
+
```c
|
60
|
+
|
61
|
+
#include <stdio.h>
|
62
|
+
|
63
|
+
int main(){
|
64
|
+
|
65
|
+
char str[256];
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
while(1){
|
70
|
+
|
71
|
+
fgets(str, sizeof(str), stdin);
|
72
|
+
|
73
|
+
printf("%s\n",str);
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
}
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
```
|