/* * @Description: * @version: * @Author: 莫邪 * @Date: 2023-10-20 10:16:52 * @LastEditors: 莫邪 * @LastEditTime: 2023-10-20 11:12:19 */ #include "Composite.hpp" int main() { std::shared_ptr root = std::make_shared("root"); std::shared_ptr second = std::make_shared("sec"); second->addEntry(std::make_shared("sex.md", "this is a girl")); root->addEntry(std::make_shared("readme.md", "for test")); root->addEntry(second); root->addEntry(std::make_shared("readme2.md", "for test2")); root->read(); return 0; }