#include <iostream>
using namespace std;
class student
{
private:
	int num;
	char name[20];
	char sex;
public:
	void display()
	{
		cout<<"num"<<num<<endl;
		cout<<"name:"<<name<<endl;
        cout<<"sex: "<<sex<<endl;
	}
}stud1,stud2;                                    //定义类的同时定义对象
int main()
{
	cout<<"定义类的同时定义对象"<<endl;
	return 0;
}
