//定义一个结构man
struct man{
char name[100];
int age;
int sex;
};
//设置man的成员变量
void setStructMan(){
man m;
strcpy(m.name,"jingjin");
m.age =20;
m.sex =1;
cout <<"\n" <<"name = " << m.name <<"\n" << "age = " << m.age <<"\n" << "sex = " << m.sex <<"\n";
}