文檔首頁(yè)>>VMPsoft中文文檔>>文件夾
文件夾
一個(gè)處理自定義文件夾的類:
class Folders { public: int count(); // returns the number of folders in the list Folder item(int index); // returns a folder with the given index Folder add(string name); // adds a new folder void clear(); // clears the list };
一個(gè)使用自定義文件夾的類:
class Folder { public: int count(); // returns the number of subfolders Folder item(int index); // returns a subfolder with the given index Folder add(string name); // adds a new subfolder string name(); // returns the name of the folder void clear(); // clears the list of subfolders void destroy(); // destroys the folder an all child subfolders };