只要稍微改一下程序就会出现syntax error : missing ';' before 'constant'

qq_35027148 2016-05-20 02:19:12

之后再怎么删怎么改 都没用 永远都是这个error 痛苦 太痛苦了 求教啊,,


Tu.cpp
c:\users\vogue\desktop\legend of hero tu\tu.h(13) : error C2143: syntax error : missing ';' before 'constant'
c:\users\vogue\desktop\legend of hero tu\tu.h(13) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.

Legend of Hero.exe - 1 error(s), 0 warning(s)


————————————————————————————
#if !defined(AFX_TU_H__1FD7DE5B_C3B5_4820_A52A_4B3474E2CF9A__INCLUDED_)
#define AFX_TU_H__1FD7DE5B_C3B5_4820_A52A_4B3474E2CF9A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Tu.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// Tu dialog

class Tu :public CDialog
{
// Construction
public:
Tu(CWnd* pParent = NULL); // standard constructor

// Dialog Data
//{{AFX_DATA(Tu)
enum { IDD = IDD_DIALOG2 };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA


// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(Tu)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL

// Implementation
protected:

// Generated message map functions
//{{AFX_MSG(Tu)
// NOTE: the ClassWizard will add member functions here
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TU_H__1FD7DE5B_C3B5_4820_A52A_4B3474E2CF9A__INCLUDED_)

...全文
728 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiaobaiqing1983 2019-05-08
  • 打赏
  • 举报
回复
这个问题有可能是 在cpp中包含这个文件的前一个文件有问题例 #include "a.h" #include "tu.h" 可能a.h这个头文件有问题,建议交换位置,再看一下错误,确认实际的错误信息 针对文件可能编码错误,建议用vim打开这个文件查看
coolcoffee4051982 2016-05-20
  • 打赏
  • 举报
回复
分号是中文输入法下输入的
shiter 2016-05-20
  • 打赏
  • 举报
回复
你这个错误啊,我估计是中文标点
schlafenhamster 2016-05-20
  • 打赏
  • 举报
回复
点击 错误 看是 那 一行 ?(tu.h(13), 重写 一次
zgl7903 2016-05-20
  • 打赏
  • 举报
回复
是不是有中文字符或全角字符?
Eleven 2016-05-20
  • 打赏
  • 举报
回复
你修改了什么导致整个错误的???

19,468

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧