#include <iostream>
#include <string>
using namespace std;
class student
{
public:
void display()
{
cout<<"num"<<num<<endl;
cout<<"name"<<name<<endl;
cout<<"sex:"<<sex<<endl;
}
void set_value()
{
cin>>num>>name>>sex;
}
private:
int num;
string name;
char sex;
};
int main()
{
student t1;
t1.set_value();
return 0;
}