Want to have a menu, accuracy, practice time
CodePudding user response:
Give you a menu, and the rest of his writingCodePudding user response:
# include & lt; Bits/stdc++. H>
using namespace std;
Int xuanze;
Void lianxi () {
//...
}
Int main () {
While (1) {
Ks: printf (" * * * * * * * * * * * * * * * * * * * * * * * * * * * * \ n ");
Printf (" * * * welcome you to practice English typing \ n * * * ");
Printf (" * * * * * * 1. Start practicing \ n ");
Printf (" * * * * * * 2. Exit system \ n ");
Printf (" * * * * * * * * * * * * * * * * * * * * * * * * * * * * \ n ");
While (1) {
The scanf (" % d ", & amp; Xuanze);
If (xuanze==1 | | xuanze==2) {
If (xuanze==1) {
Lianxi ();
Goto ks.
} else {
Printf (" welcome next time \ n ");
system("pause");
return 0;
}
}
Printf (" input is wrong, please input again! \n");
}
}
return 0;
}