#include <iostream>
using namespace std;
class student
{
private:
	int num;
	char name[20];
	char sex;
public:
	void display();                             //声明成员函数display
};
int main()
{
	cout<<"在类外定义成员函数"<<endl;
}
void student::display()                           //在类外定义成员函数display
{
	cout<<"num:"<<num<<endl;
	cout<<"name:"<<name<<endl;
	cout<<"sex:"<<sex<<endl;
}
