#include <iostream>
#include <stdlib.h>
#include <string>
using namespace std;
class xeisheng{
public:
string XieHao;
string XingMing;
string Sex;
string ChuShengNianYie;
string DianHua;
string JiaTingDiZhi;
public:
void Print(){
_XieHao=XieHao;
_XingMing=XingMing;
_Sex=Sex;
_ChuShengNianYie=ChuShengNianYie;
_DianHua=DianHua;
_JiaTingDiZhi=JiaTingDiZhi;
cout<<"学号:"<<_XieHao<<endl;
cout<<"姓名:"<<_XingMing<<endl;
cout<<"姓别:"<<_Sex<<endl;
cout<<"出生年月:"<<_ChuShengNianYie<<endl;
cout<<"电话:"<<_DianHua<<endl;
cout<<"家庭地址:"<<_JiaTingDiZhi<<endl;
};
private:
string _XieHao;
string _XingMing;
string _Sex;
string _ChuShengNianYie;
string _DianHua;
string _JiaTingDiZhi;
};
int main(int argc, char *argv[])
{
xeisheng me;
me.XieHao="10001";
me.XingMing="张三";
me.Sex="男";
me.ChuShengNianYie="1985-04-08";
me.DianHua="13244825367";
me.JiaTingDiZhi="广东省阳春市";
me.Print();
me.XingMing="李四";
me.Sex="女";
me.Print();
system("PAUSE");
return 0;
}