Home > Back-end >  Pray god guide began to report errors in press 1
Pray god guide began to report errors in press 1

Time:12-11

Void adoptor: : adoptorjiemian ()
{
int num;
Cout & lt; <"* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" & lt; Cout & lt; <"* adopted interface *" & lt; Cout & lt; <"* *" (1) entry to adopt information & lt; Cout & lt; <"* * (2) query adoption information" & lt; Cout & lt; <"* (3) check out the system *" & lt; Cout & lt; <"* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" & lt; Cin & gt;> Num.
If (num<1 | | num> 3)
{
Cout & lt; <"Input error, please input again" & lt; Cin & gt;> Num.
}
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; Cin & gt;> i;
} 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,
  • Related