回答編集履歴
1
ミス修正
answer
CHANGED
@@ -21,20 +21,20 @@
|
|
21
21
|
bool isFolder() const {return mIsFolder;}
|
22
22
|
};
|
23
23
|
|
24
|
-
class
|
24
|
+
class Folder : public DiskItem
|
25
25
|
{
|
26
26
|
vector<DiskItem*> mChildList;
|
27
27
|
public:
|
28
|
-
|
28
|
+
Folder(string iPath) : DiskItem(iPath, ture) { }
|
29
29
|
void addDiskItem(DiskItem* iDiskItem)
|
30
30
|
{
|
31
31
|
mChildList.push_back(iDiskItem);
|
32
32
|
}
|
33
33
|
};
|
34
34
|
|
35
|
-
class
|
35
|
+
class File : public DiskItem
|
36
36
|
{
|
37
37
|
public:
|
38
|
-
|
38
|
+
File(string iPath) : DiskItem(iPath, false) { }
|
39
39
|
};
|
40
40
|
```
|