質問編集履歴
3
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,11 +38,13 @@
|
|
38
38
|
|
39
39
|
string* list=makeList(size);
|
40
40
|
|
41
|
+
|
42
|
+
|
41
43
|
for(int i=0;i<size;i++){
|
42
44
|
|
43
45
|
getline(ifs,word);
|
44
46
|
|
45
|
-
|
47
|
+
list[i]=word;
|
46
48
|
|
47
49
|
}
|
48
50
|
|
@@ -53,8 +55,6 @@
|
|
53
55
|
cout<<list[i]<<": ";
|
54
56
|
|
55
57
|
cin>>name;
|
56
|
-
|
57
|
-
second_list[i]=name;
|
58
58
|
|
59
59
|
}
|
60
60
|
|
2
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,25 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
+
|
32
|
+
|
33
|
+
getline(ifs,str);
|
34
|
+
|
35
|
+
int size=stoi(str);
|
36
|
+
|
37
|
+
|
38
|
+
|
31
39
|
string* list=makeList(size);
|
40
|
+
|
41
|
+
for(int i=0;i<size;i++){
|
42
|
+
|
43
|
+
getline(ifs,word);
|
44
|
+
|
45
|
+
second_list[i]=word;
|
46
|
+
|
47
|
+
}
|
48
|
+
|
49
|
+
|
32
50
|
|
33
51
|
for(int i=0;i<size;i++){
|
34
52
|
|
@@ -36,7 +54,7 @@
|
|
36
54
|
|
37
55
|
cin>>name;
|
38
56
|
|
39
|
-
second
|
57
|
+
second_list[i]=name;
|
40
58
|
|
41
59
|
}
|
42
60
|
|
1
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,6 +15,20 @@
|
|
15
15
|
|
16
16
|
|
17
17
|
```C++
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
string* makeList(int size){
|
22
|
+
|
23
|
+
string* listy=new string[size];
|
24
|
+
|
25
|
+
return list;
|
26
|
+
|
27
|
+
}
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
string* list=makeList(size);
|
18
32
|
|
19
33
|
for(int i=0;i<size;i++){
|
20
34
|
|