質問編集履歴
2
members.txtの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -168,6 +168,32 @@
|
|
168
168
|
|
169
169
|
}
|
170
170
|
|
171
|
+
/*以下、members.txtのコピペ
|
172
|
+
|
173
|
+
Watson 1850
|
174
|
+
|
175
|
+
Greg 1320
|
176
|
+
|
177
|
+
Fald 990
|
178
|
+
|
179
|
+
Tiger 2500
|
180
|
+
|
181
|
+
George 3350
|
182
|
+
|
183
|
+
Nick 1080
|
184
|
+
|
185
|
+
Daily 704
|
186
|
+
|
187
|
+
Aoki 834
|
188
|
+
|
189
|
+
Jambo 910
|
190
|
+
|
191
|
+
Kuramoto 520
|
192
|
+
|
193
|
+
*/
|
194
|
+
|
195
|
+
|
196
|
+
|
171
197
|
```
|
172
198
|
|
173
199
|
|
1
関数createMember内の穴埋め箇所の訂正(sizeof(char)+1が穴埋め→sizeof(char)が穴埋め)
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,7 +60,7 @@
|
|
60
60
|
|
61
61
|
Member* m = (Member*)malloc(sizeof(Member)); /*sizeof(Member)が穴埋め*/
|
62
62
|
|
63
|
-
m->name = (char*)malloc(sizeof(char) + 1); /*sizeof(char)
|
63
|
+
m->name = (char*)malloc(sizeof(char) + 1); /*sizeof(char)が穴埋め。この行でエラー「NULLポインタ~」が発生*/
|
64
64
|
|
65
65
|
strcpy(m->name, name); /*この行でエラー「m->nameは~」が発生*/
|
66
66
|
|