在执行“CUser m_user;”时出现如下错误,我该如何修改
error C2146: syntax error : missing ';' before identifier 'm_user'
error C2501: 'CUser' : missing storage-class or type specifiers
error C2501: 'm_user' : missing storage-class or type specifiers
其中CUser是我定义的一个一般类。
error C2146: syntax error : missing ';' before identifier 'm_user'
error C2501: 'CUser' : missing storage-class or type specifiers
error C2501: 'm_user' : missing storage-class or type specifiers
其中CUser是我定义的一个一般类。
解决方案 »
- directinput问题,如何创建多个joystick实例
- 关于对话框中使用RichEdit控件的问题。
- 在对话框程序中如何弹出个全屏,没有标题栏、工具栏状态栏的黑底窗口?
- 如何生成日志文件?急……
- winsock 能够传输一个结构吗??
- 哪里有VC编译错误大全之类的书啊?要电子版的,解决了坚决给分
- 请教VC宏的制作文件头信息,function信息的注释!!!!!!!!!!
- glGenLists生成的结果重复?
- 多线程如何安全访问同一个MFC控件
- 那里有installshield的中文说明
- 为何我对WORD,Outlook Express和IE输入框发送WM_PASTE消息不行?
- 按钮DISABLED后灰白的文本是如何画出来的?
'identifier' : missing storage-class or type specifiersThe identifier was declared without specifying its type.Tips The most typical cause of this error is a typographical error. Recheck the identifier to ensure it is spelled correctly and that the alphabetic case is correct.
This error may occur when a type specifier is omitted in the declaration of an identifier. In the following example, assume the header file for the class CUndeclared has been omitted:
class CMyClass {
private:
CUndeclared m_myClass; // Error: Class unknown
} ;