1
Problem: C:/Dev-Cpp/静态成员/静态成员/aaa.cpp(26) : error C2628: 'Student' followed by 'int' is illegal (did you forget a ';'?)
C:/Dev-Cpp/静态成员/静态成员/aaa.cpp(26) : error C2371: 'protected: static int Student::NoOfStudents' : redefinition; different basic types
C:/Dev-Cpp/静态成员/静态成员/aaa.cpp(23) : see declaration of 'protected: static int Student::NoOfStudents'
Error executing cl.exe.
Solution: 类定义完之后少了一个分号.加上即可.