回答編集履歴
1
変更
test
CHANGED
@@ -108,7 +108,7 @@
|
|
108
108
|
|
109
109
|
p = root;
|
110
110
|
|
111
|
-
fp = fopen("test
|
111
|
+
fp = fopen("test.txt","r");
|
112
112
|
|
113
113
|
while((fscanf(fp,"%s%s%d%d",p->mail,p->name,&p->number,&p->ID)) !=EOF){
|
114
114
|
|
@@ -147,3 +147,25 @@
|
|
147
147
|
}
|
148
148
|
|
149
149
|
```
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
ファイルtest.txt
|
154
|
+
|
155
|
+
```file
|
156
|
+
|
157
|
+
hoge1@aaa.bbb suzuki.ichirou 1 10
|
158
|
+
|
159
|
+
hoge2@aaa.bbb suzuki.jiro 2 20
|
160
|
+
|
161
|
+
hoge3@aaa.bbb suzuki.saburo 3 30
|
162
|
+
|
163
|
+
hoge4@aaa.bbb suzuki.shiro 4 40
|
164
|
+
|
165
|
+
hoge5@aaa.bbb suzuki.goro,5 50 0
|
166
|
+
|
167
|
+
hoge6@aaa.bbb suzuki.rokuro 6 60
|
168
|
+
|
169
|
+
hoge7@aaa.bbb suzuki.shichiro 7 70
|
170
|
+
|
171
|
+
```
|