我创建了一个包含以下内容的新 .h 文件:
#include "stdafx.h"
#include <string>
using namespace std;
struct udtCharVec
{
wstring GraphemeM3;
wstring GraphemeM2;
};
Run Code Online (Sandbox Code Playgroud)
当我想编译它时,编译器告诉我“错误 C2011: udtCharVec: struct type redefintion”。
我进行了文本搜索,但在其他任何地方都没有定义“struct udtCharVec”。
有人看到我哪里出错了吗?