2024年1月26日

【C++】前置声明导致的代码含义改变

摘要: 真的有这么离谱的事哈哈哈哈。 // F.h struct F { }; struct S : F { }; // User.h #include <iostream> struct F; struct S; struct User { void f(F*) { std::cout << "F" << 阅读全文

posted @ 2024-01-26 17:58 Ciaoss 阅读(23) 评论(0) 推荐(0)

导航