Update Node.hpp

main
p68710245 1 year ago
parent b1812915b9
commit e7c443d5a6

@ -32,7 +32,11 @@ public:
}
void print()
{
std::cout << info << '\t'; // 需要info支持插入运算符重载
std::cout << info << ' '; // 需要info支持插入运算符重载
}
T get_info()
{
return info;
}
friend class List<T>; // 以List为友元类
};

Loading…
Cancel
Save