{
int num;
Cout & lt; <"* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" & lt;
If (num<1 | | num> 3)
{
Cout & lt; <"Input error, please input again" & lt;
}
The switch (num)
{
Case 1:
int i;
Char s * n, m;
Do
{
Elegantly-named setname (n);
Setsex (s);
Setage (I);
Setmarriage (m);
Cout & lt; <"Whether or not to continue school? (1 - to continue/0 - exit) "& lt;
} while (I);
break;
Case 2:
Print ();
break;
Case 3:
break;
}
}
CodePudding user response:
S n m is initialized in the set?If not, then have to initialize or input,