質問編集履歴
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,11 +38,11 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
-
class Libra
|
41
|
+
class Library{
|
42
42
|
|
43
43
|
public:
|
44
44
|
|
45
|
-
Libra
|
45
|
+
Library();
|
46
46
|
|
47
47
|
string getTitle();
|
48
48
|
|
@@ -82,7 +82,7 @@
|
|
82
82
|
|
83
83
|
bool isEmpty() const { return root==NULL; }
|
84
84
|
|
85
|
-
void insert(Libra
|
85
|
+
void insert(Library);
|
86
86
|
|
87
87
|
void print();
|
88
88
|
|
@@ -100,7 +100,7 @@
|
|
100
100
|
|
101
101
|
//treeType data;
|
102
102
|
|
103
|
-
Libra
|
103
|
+
Library data;
|
104
104
|
|
105
105
|
};
|
106
106
|
|
@@ -112,7 +112,7 @@
|
|
112
112
|
|
113
113
|
|
114
114
|
|
115
|
-
Libra
|
115
|
+
Library::Library(){
|
116
116
|
|
117
117
|
|
118
118
|
|
@@ -120,7 +120,7 @@
|
|
120
120
|
|
121
121
|
|
122
122
|
|
123
|
-
void Libra
|
123
|
+
void Library::setTitle(string newTitle){
|
124
124
|
|
125
125
|
title = newTitle;
|
126
126
|
|
@@ -128,7 +128,7 @@
|
|
128
128
|
|
129
129
|
|
130
130
|
|
131
|
-
void Libra
|
131
|
+
void Library::setAuthor(string newAuthor){
|
132
132
|
|
133
133
|
author = newAuthor;
|
134
134
|
|
@@ -136,7 +136,7 @@
|
|
136
136
|
|
137
137
|
|
138
138
|
|
139
|
-
void Libra
|
139
|
+
void Library::setYear(int newYear){
|
140
140
|
|
141
141
|
year = newYear;
|
142
142
|
|
@@ -144,7 +144,7 @@
|
|
144
144
|
|
145
145
|
|
146
146
|
|
147
|
-
string Libra
|
147
|
+
string Library::getTitle() {
|
148
148
|
|
149
149
|
return title;
|
150
150
|
|
@@ -152,7 +152,7 @@
|
|
152
152
|
|
153
153
|
|
154
154
|
|
155
|
-
string Libra
|
155
|
+
string Library::getAuthor() {
|
156
156
|
|
157
157
|
return author;
|
158
158
|
|
@@ -160,7 +160,7 @@
|
|
160
160
|
|
161
161
|
|
162
162
|
|
163
|
-
int Libra
|
163
|
+
int Library::getYear(){
|
164
164
|
|
165
165
|
return year;
|
166
166
|
|
@@ -168,7 +168,7 @@
|
|
168
168
|
|
169
169
|
|
170
170
|
|
171
|
-
void BinarySearchTree::insert(Libra
|
171
|
+
void BinarySearchTree::insert(Library l){
|
172
172
|
|
173
173
|
node* t = new node;
|
174
174
|
|
@@ -298,7 +298,7 @@
|
|
298
298
|
|
299
299
|
int year;
|
300
300
|
|
301
|
-
Libra
|
301
|
+
Library l;
|
302
302
|
|
303
303
|
while(file >> title >> author >> year){
|
304
304
|
|
1
タグの追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|