Size of driver menu 6204 9:58 am

xiaoxiao2021-03-06  50

Size of the driver menu #include #include

Using namespace std;

INT main () {char r; cout << "please enter one of the folloadinger: / n"; cout << "c) carnirore" << "<<" << "p) pianist / n"; COUT << "T) Tree" << "" << "<<" g) Game / N "; cout <<" please Enter AC, P, T, or G: ";

While (cin >> r) {r = tolower (r); if (r == 'c' || r == 'p' || r == 't' || r == 'g') {switch (r) {CASE 'C': COUT << "a mail is a carnirore / n"; cout << "please Enter AC, P, T, or G:"; Break; Case 'P': cout << " a maple is a pianist / n "; cout <<" Please Enter AC, P, T, or G: "; Break; Case 'T': cout <<" a mail is a tree / n "; cout <<" Please Enter AC, P, T, OR G: "; Break; Case 'g': cout <<" a mail is a game / n "; cout <<" please Enter AC, P, T, or G: "; Break;}} else cout << "please Enter AC, P, T, or G:";} return 0;

转载请注明原文地址:https://www.9cbs.com/read-117516.html

New Post(0)