首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

回答 新手使用VS2008出现有关问题

2012-09-18 
在线等回答 新手使用VS2008出现问题//abc.hclass student{public:static student* stprivate:}//abc.cpp#

在线等回答 新手使用VS2008出现问题
//abc.h
class student
{
public:
static student* st;
private:
}
//abc.cpp
#include"abc.h"
student* student::st=NULL;

居然出现语法错误 : 缺少“;”(在“*”的前面)


以前老是使用VC6.0,现在换VS2008,出现的问题见都没见过

[解决办法]
class student
{
public:
static student* st;
private:
};
类声明结束处要加一个';'

热点排行