#include<string>
using namespace std;
class student
{
public:
void display();
int num;
string name;
char sex;
};
//student.cpp
#include<iostream>
#include"student.h"
void student::display()
{
cout<<"num:"<<num<<endl;
cout<<"name:"<<name<<endl;
cout<<"sex:"<<sex<<endl;
}
//main.cpp
#include <iostream>
#include"student.h"
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main()
{
student stud;
cin>>stud.num>>stud.name>>stud.sex;
stud.display();
return 0;
}