初学:有关数组的赋值
static int aaa[7]={1,2,3,4,5,6,7};
这个变量在过程中赋值是没问题的.
但对于如何把aaa做为一个类的成员,这样就有错误提示
class CCImageApp : public CWinApp
{
public:
CCImageApp();
static int aaa[7]={1,2,3,4,5,6,7};
// Overrides
public:
virtual BOOL InitInstance();
// Implementation
public:
afx_msg void OnAppAbout();
DECLARE_MESSAGE_MAP()
};
那么正确的该怎么做?
因为初学,所以尽量详细一些。