回答編集履歴
2
追記
test
CHANGED
@@ -8,6 +8,10 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
+
> name[i] = str;
|
12
|
+
|
13
|
+
|
14
|
+
|
11
15
|
文字列は直接代入できません。
|
12
16
|
|
13
17
|
[strcpy()](http://www.c-tipsref.com/reference/string/strcpy.html)を使いましょう。
|
1
追記
test
CHANGED
@@ -5,3 +5,9 @@
|
|
5
5
|
↓
|
6
6
|
|
7
7
|
fscanf(fp, "%d,%s,%d,%d,%d", &f1, str ,&f2, &f3, &f4);
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
文字列は直接代入できません。
|
12
|
+
|
13
|
+
[strcpy()](http://www.c-tipsref.com/reference/string/strcpy.html)を使いましょう。
|