在执行“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是我定义的一个一般类。
解决方案 »
- glut.lib,glut.h,glut.dll
- 对话框问题, CListCtrl 问题
- ADO数据库连接的问题
- 请问如何读取EXCEL文件的数据?!就是把EXCEL的数据给读出来,并且读娶指定某个单元格的值。
- 请教一个有关文档类的问题
- 视频捕获-mpeg4压缩-网络传送,公开所有源码。
- [求助]如何利用CRecordSet类删除、修改excel里面的记录?
- MFC多文档程序 为什么最小化以后点击任务栏上的图标后菜单栏不显示
- 在vc中能不能使用一组控件一起身某个方向移动?
- debugy与release的问题?
- 为何我对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
} ;