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

在线等回答 新手使用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:
};
类声明结束处要加一个';'