内容是parsing error:Expected";"
Input Line:"int I[200][3];"// Test3Dlg.h : header file
//#if !defined(AFX_TEST3DLG_H__52B68F4F_9DFD_42E1_8B38_C5BE49275EBF__INCLUDED_)
#define AFX_TEST3DLG_H__52B68F4F_9DFD_42E1_8B38_C5BE49275EBF__INCLUDED_#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ListCtrlEx.h"
/////////////////////////////////////////////////////////////////////////////
// CTest3Dlg dialogclass CTest3Dlg : public CDialog
{
// Construction
public:
CTest3Dlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTest3Dlg)
enum { IDD = IDD_TEST3_DIALOG };
CListCtrlEx m_list;
int I[200][3];
//}}AFX_DATA // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTest3Dlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL// Implementation
protected:
HICON m_hIcon; // Generated message map functions
//{{AFX_MSG(CTest3Dlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonAdd();
afx_msg void OnButtonDel();
afx_msg void OnButtonDelall();
virtual void OnOK();
afx_msg void OnCalculate();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
CString str[3];
int m_nSelectItem;
};//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_TEST3DLG_H__52B68F4F_9DFD_42E1_8B38_C5BE49275EBF__INCLUDED_)
Input Line:"int I[200][3];"// Test3Dlg.h : header file
//#if !defined(AFX_TEST3DLG_H__52B68F4F_9DFD_42E1_8B38_C5BE49275EBF__INCLUDED_)
#define AFX_TEST3DLG_H__52B68F4F_9DFD_42E1_8B38_C5BE49275EBF__INCLUDED_#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ListCtrlEx.h"
/////////////////////////////////////////////////////////////////////////////
// CTest3Dlg dialogclass CTest3Dlg : public CDialog
{
// Construction
public:
CTest3Dlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTest3Dlg)
enum { IDD = IDD_TEST3_DIALOG };
CListCtrlEx m_list;
int I[200][3];
//}}AFX_DATA // ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTest3Dlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL// Implementation
protected:
HICON m_hIcon; // Generated message map functions
//{{AFX_MSG(CTest3Dlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonAdd();
afx_msg void OnButtonDel();
afx_msg void OnButtonDelall();
virtual void OnOK();
afx_msg void OnCalculate();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
CString str[3];
int m_nSelectItem;
};//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_TEST3DLG_H__52B68F4F_9DFD_42E1_8B38_C5BE49275EBF__INCLUDED_)
解决方案 »
- 如何获得IDirect3DDevice9指针?
- 求助关于CWinApp*AfxGetApp()的问题
- 如何在CListCtrl的某一行失去焦点时提取其中的数据?
- 请问大家登录框内的进度条大家是如何实现的?
- 使用LogonUser和CreateProcessAsUser函数创建的进程无法在系统注销时被结束?
- 我这样创建二进制文件怎么不行,各位兄弟朋友帮帮忙,分不够再加
- 请问如何在视区拖动按钮又不闪烁?
- 求 <Essntial COM> 附带光盘
- 新手关于dll 的问题,谁来指点一下呀!
- 请教 vc 实现3D效果图
- 网络调用问题(网络注册),求各位指点一下,UP也有分!。。。。。
- 如何 在一个网络聊天程序中,时事监控对方的屏幕?????(用vc开发)
: CDialog(CTest3Dlg::IDD, pParent)
{
int i,j;
for (i=0;i<200;i++)
for (j=0;j<3;j++)
I[i][j]=0; //{{AFX_DATA_INIT(CTest3Dlg)
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}
{
// TODO: Add extra validation here
UpdateData();
//char* buf=new char[16];
int n=m_list.GetItemCount();//获取列表控件的项的数量
CString buf;
int j,k;
for (j=0;j<=n;j++)
{ buf.Empty();
for (k=0;k<3;k++)
{ buf.Empty();
buf=m_list.GetItemText(j,k);
I[j][k]=atoi((LPSTR)(LPCTSTR)buf);
}
}
//CDialog::OnOK();
}
enum { IDD = IDD_TEST3_DIALOG };
CListCtrlEx m_list;
//}}AFX_DATA int I[200][3];int I[][]写到外面来
//}}AFX_DATA