求各位大佬指教,c代码错误为:*前丢失;

czc2728 2017-03-22 10:54:29
求各位大佬帮忙看一下代码哪里出了问题,小弟不才,请各位大佬指教!
这是错误提示:
error C2143: syntax error : missing';' before '*'
error C2501: 'Engine' : missing storage-class or type specifiers
以下是代码:
#if !defined(AFX_DATAINPUT_H__C6AA8758_3D48_45E[/color]D_9AB0_78242E44C48D__INCLUDED_)
#define AFX_DATAINPUT_H__C6AA8758_3D48_45ED_9AB0_78242E44C48D__INCLUDED_

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

#include "engine.h"
#include "Fdjchdxcsh.h"

/////////////////////////////////////////////////////////////////////////////
// CDatainput dialog

class CDatainput : public CDialog
{
// Construction
public:
CDatainput(CWnd* pParent = NULL); // standard constructor
Engine *eng;
int m_dws;

// Dialog Data
//{{AFX_DATA(CDatainput)
enum { IDD = IDD_DLG_DATA };
double m_f;
double m_Za;
double m_Cd;
double m_chdxl;
double m_fai;
double m_Ga;
double m_midu;
double m_r;
double m_yfmj;
//}}AFX_DATA


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

// Implementation
protected:

// Generated message map functions
//{{AFX_MSG(CDatainput)
afx_msg void OnBtNext();
afx_msg void OnBtExit();
afx_msg void OnRadio1Ivd();
afx_msg void OnRadio2Vd();
afx_msg void OnRadio3Vid();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_DATAINPUT_H__C6AA8758_3D48_45ED_9AB0_78242E44C48D__INCLUDED_)
...全文
137 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
AlbertS 2017-03-22
  • 打赏
  • 举报
回复
查一下能不能获得Engine 的定义吧
小灸舞 版主 2017-03-22
  • 打赏
  • 举报
回复
如果报错的是这行:Engine *eng;
那就说明你的Engine类型没有被识别出来,贴一下你的engine.h
幻夢之葉 2017-03-22
  • 打赏
  • 举报
回复
Engine没有这个东西,你看看你包含的那个头文件是不是有这个类型,或者拼写有没有错误

69,373

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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