//#include <QVector> 头文件没有包含会出错
QVector<part_file_t> g_struPartFile;
field 'g_struPartFile' has incomplete type
本文探讨了C++中QVector容器的正确使用方法,特别强调了包含必要头文件的重要性。通过一个具体的例子说明了未正确包含<QVector>头文件可能导致的编译错误,并解释了如何避免此类问题。
//#include <QVector> 头文件没有包含会出错
QVector<part_file_t> g_struPartFile;
field 'g_struPartFile' has incomplete type
420
8194
8588
391

被折叠的 条评论
为什么被折叠?
