質問編集履歴
2
LRarray::set の delete の位置を戻しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -67,8 +67,8 @@
|
|
67
67
|
cout << "capacity: " << this -> capacity << endl;
|
68
68
|
cout << "size: " << this -> mp.size() << endl;
|
69
69
|
cout << "Too many items" << endl;
|
70
|
-
delete second;
|
71
70
|
}
|
71
|
+
delete second;
|
72
72
|
|
73
73
|
|
74
74
|
}
|
1
LRarray::set の delete の位置を修正しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -67,8 +67,9 @@
|
|
67
67
|
cout << "capacity: " << this -> capacity << endl;
|
68
68
|
cout << "size: " << this -> mp.size() << endl;
|
69
69
|
cout << "Too many items" << endl;
|
70
|
+
delete second;
|
70
71
|
}
|
71
|
-
|
72
|
+
|
72
73
|
|
73
74
|
}
|
74
75
|
void LRarray::get(int k)
|