我在vc6.0中建立一个console类型的程序,定义如下变量
typedef WORD aaa;
typedef struct
{
DWORD BBB;
int ccc;
} strtest;
编译后总出错::\console\stdafx.cpp(12) : error C2146: syntax error : missing ';' before identifier 'BBB'
h:\console\stdafx.cpp(12) : error C2501: 'DWORD' : missing storage-class or type specifiers
h:\console\stdafx.cpp(12) : error C2501: 'BBB' : missing storage-class or type specifiers
请问是否需要加入别的头文件?如何调试
typedef WORD aaa;
typedef struct
{
DWORD BBB;
int ccc;
} strtest;
编译后总出错::\console\stdafx.cpp(12) : error C2146: syntax error : missing ';' before identifier 'BBB'
h:\console\stdafx.cpp(12) : error C2501: 'DWORD' : missing storage-class or type specifiers
h:\console\stdafx.cpp(12) : error C2501: 'BBB' : missing storage-class or type specifiers
请问是否需要加入别的头文件?如何调试
c:\program files\microsoft visual studio\vc98\include\winnt.h(3143) : error C2146: syntax error : missing ';' before identifier 'ContextRecord'
c:\program files\microsoft visual studio\vc98\include\winnt.h(3143) : error C2501: 'PCONTEXT' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(3143) : error C2501: 'ContextRecord' : missing storage-class or type specifiers
typedef unsigned long DWORD;
typedef unsigned short int WORD;
typedef WORD aaa;
typedef struct
{
DWORD BBB;
int ccc;
} strtest;
HANDLE' : missing storage-class or type specifiers