包含头文件然后创建类实例,通过实例调用函数例如有个Student类在头文件Student.h里面,则#include "Student.h"Student s; //类实例 s.GetStudentName(); //通过实例调用函数