更新时间:2023-02-02 23:32:42
第一个错误 - 您需要明确使用命名空间:
first error - you need to explicitly use the namespace:
std::vector<Router> Routers;
不要使用namespace std;在头文件中
Don't "use namespace std;" in header files
其他错误从第一个开始重新生成:)
Other errors are restulting from the first :)
以后,你需要做向前宣布的Router类,put
As to the referencing to the class defined later, you need to do forward declaration of Router class, put
class Router;
加入您的Network.h
into your Network.h