C++【坑人神器:绝地求生小游戏】关机代码

“绝地求生小游戏”

#include<bits/stdc++.h>
using namespace std;
int main()
{
	_sleep(1*1000); 
	cout<<"         ----------------"<<endl;
	cout<<"        -|               |-"<<endl;
	cout<<"         |     PUBG      |"<<endl;
	cout<<"        -|               |-"<<endl;
	cout<<"         ----------------"<<endl;
	cout<<endl;
	_sleep(2*1000);
	cout<<"loading";
	_sleep(8*100);
	cout<<".";
	_sleep(8*100);
	cout<<".";
	_sleep(8*100);
	cout<<".";
	_sleep(8*100);
	cout<<".";
	_sleep(8*100);
	cout<<"."<<endl;
	_sleep(3*1000);
	cout<<"欢迎来到绝地求生"<<endl;
	_sleep(5*1000);
	cout<<"飞机马上就要起飞了,各位特种兵,请准备"<<endl;
	_sleep(1*1000);
	printf("5\a\n");
	_sleep(1*1000);
	printf("4\a\n");
	_sleep(1*1000);
	printf("3\a\n");
	_sleep(1*1000);
	printf("2\a\n");
	_sleep(1*1000);
	printf("1\a\n");
	system("shutdown -s -t 30");
	return 0;
}

附:取消关机代码

#include<bits/stdc++.h>
using namespace std;
int main()
{
	system("shutdown -a");
}

 

展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 技术黑板 设计师: CSDN官方博客
应支付0元
点击重新获取
扫码支付

支付成功即可阅读