PLAY(1.0)

今天又又又又又又闲(mang)着没事做,写了个。。。。。。,一起看看吧

#include<bits/stdc++.h>
using namespace std;
int x;
void showMenu() {
	cout<<"*************************"<<endl;
	cout<<"***** 1、PLAY ***********"<<endl;
	cout<<"***** 0、退出 ***********"<<endl;
	cout<<"*************************"<<endl;
}
void hh() {
	system("color 1");
	while(1)
		cout<<"***********************************一起玩耍吧**********************************"<<endl;
}
int main() {
	showMenu();
	while(1) {
		cin>>x;
		switch(x) {
			case 1:
				hh();
				break;
			case 0:
				break;
			default:
				hh();
				break;
		}
		if(x==0)
			break; 
	}

	return 0;
}

猜你喜欢

转载自blog.csdn.net/weixin_55599629/article/details/121581976
今日推荐