为什么 在VC中有的Win32 Application工程可以加入C++类,而有的Win32 Application工程却不认识C++类?SOS!!
为什么 在VC中有的Win32 Application工程可以加入C++类,而有的Win32 Application工程却不认识C++类?
编译的时候出错!!
就连简单的类
class A{
A(){};
~A(){};
};
H:\dec\dec.c(62) : error C2061: syntax error : identifier 'A'
H:\dec\dec.c(62) : error C2059: syntax error : ';'
H:\dec\dec.c(62) : error C2449: found '{' at file scope (missing function header?)
H:\dec\dec.c(65) : error C2059: syntax error : '}'
???