回答編集履歴

2

空白調整

2019/11/26 07:35

投稿

shiracamus
shiracamus

スコア5406

test CHANGED
@@ -32,7 +32,7 @@
32
32
 
33
33
 
34
34
 
35
- for (; c < LINELEN && fgets(s, LINELEN, stdin) != NULL; c++) {
35
+ for(; c < LINELEN && fgets(s, LINELEN, stdin) != NULL; c++){
36
36
 
37
37
 
38
38
 
@@ -66,7 +66,7 @@
66
66
 
67
67
 
68
68
 
69
- for (int i = 0; i < c; i++) {
69
+ for(int i = 0; i < c; i++){
70
70
 
71
71
  free(line[i]);
72
72
 

1

説明追加

2019/11/26 07:35

投稿

shiracamus
shiracamus

スコア5406

test CHANGED
@@ -1,3 +1,9 @@
1
+ 上半分を表示する間に下半分も表示。
2
+
3
+ free処理も間違ってましたよ。
4
+
5
+
6
+
1
7
  ```c
2
8
 
3
9
  #include<stdio.h>