摘要: C++类里静态成员链接错误 我现声明一个类内静态变量: class test{ public: static int a; int get(); }; 在test.cpp中对a进行使用 #include<test.h> int test::get() { return a; } 会产生链接错误 这可能是为了兼容c语言stati 阅读全文
posted @ 2022-03-03 20:21 帝皇の惊 阅读(233) 评论(0) 推荐(0)