一个很愚蠢的游戏(下)!!!

CSDN

系列文章目录

  1. c++小游戏_睡觉觉觉得的博客-CSDN博客
  2. 一个很愚蠢的游戏(上)!!!_睡觉觉觉得的博客-CSDN博客
  3. 一个很愚蠢的游戏(中)!!!_睡觉觉觉得的博客-CSDN博客


前言

这是一个很愚蠢的游戏!!!最后一期啰!需要的话会写后续哟!


一、个人主页

个人主页:睡觉觉觉得
🎐CSDN新晋作者
🎉欢迎 👍点赞✍评论⭐收藏
✨收录专栏:游戏
🤝希望作者的文章能对你有所帮助,有不足的地方请在评论区留言指正,大家一起学习交流!🤗

二、描述

无聊的时候随便写的代码!
好像有点水
不水

三、代码

1.代码

//细节成败于成功!
//没完工!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#include<bits/stdc++.h>
#include<windows.h>
#include<conio.h>
using namespace std;
void c() ;
void m() ;
void y() {
	for(int i = 0; i < 9999; i++) {
		for(int j = 0; j < 30000; j++) {

		}
	}
}
void ren() {
	cout<<"  &&&&   "<<endl;
	cout<<" & .. &  "<<endl;
	cout<<"&      & <==屏幕前嚣张的你!"<<endl;
	cout<<" & -- &  "<<endl;
	cout<<"  &  &   "<<endl;
	cout<<" & && &  "<<endl;
	cout<<"&  &&  & "<<endl;
	cout<<"&  &&  & "<<endl;
	cout<<"   &&    "<<endl;
	cout<<" &    &  "<<endl;
	cout<<"&      & "<<endl;
	cout<<"&      & "<<endl;
}
void ren2() {
	cout<<"  &&&&   ——————"<<endl;
	cout<<" & .. &  |  我好   |"<<endl;
	cout<<"&      & |  厉害   |"<<endl;
	cout<<" & ww &  ——————"<<endl;
	cout<<"  &  &   "<<endl;
	cout<<" & && &  "<<endl;
	cout<<"&  &&  & "<<endl;
	cout<<"&  &&  & "<<endl;
	cout<<"   &&    "<<endl;
	cout<<" &    &  "<<endl;
	cout<<"&      & "<<endl;
	cout<<"&      & "<<endl;
}
void ren3() {
	cout<<"  &&&&                    ~"<<endl;
	cout<<" & .. &                  ~ "<<endl;
	cout<<"&      &                ~  "<<endl;
	cout<<" & ww &                ~   "<<endl;
	cout<<"  &  &                 ~   "<<endl;
	cout<<" & && &               ~    "<<endl;
	cout<<"&  &&  &              ~    "<<endl;
	cout<<"&  &&  &               ~   "<<endl;
	cout<<"   &&                  ~   "<<endl;
	cout<<" &    &                 ~  "<<endl;
	cout<<"&      &                 ~ "<<endl;
	cout<<"&      &                  ~"<<endl;
}
void ren4() {
	cout<<"  &&&&   ——————     ~"<<endl;
	cout<<" & .. &  |  那是   |     ~ "<<endl;
	cout<<"&      & |什么???? |    ~  "<<endl;
	cout<<" & -- &  ——————  ~   "<<endl;
	cout<<"  &  &                 ~   "<<endl;
	cout<<" & && &               ~    "<<endl;
	cout<<"&  &&  &              ~    "<<endl;
	cout<<"&  &&  &               ~   "<<endl;
	cout<<"   &&                  ~   "<<endl;
	cout<<" &    &                 ~  "<<endl;
	cout<<"&      &                 ~ "<<endl;
	cout<<"&      &                  ~"<<endl;
}
void ren5() {
	cout<<"  &&&&   —————— ~"<<endl;
	cout<<" & .. &  |  那是   | ~ "<<endl;
	cout<<"&      & |什么???? |~  "<<endl;
	cout<<" & -- &  ————  ~   "<<endl;
	cout<<"  &  &             ~   "<<endl;
	cout<<" & && &           ~    "<<endl;
	cout<<"&  &&  &          ~    "<<endl;
	cout<<"&  &&  &           ~   "<<endl;
	cout<<"   &&              ~   "<<endl;
	cout<<" &    &             ~  "<<endl;
	cout<<"&      &             ~ "<<endl;
	cout<<"&      &              ~"<<endl;
}
void ren6() {
	cout<<"  &&&&   ———   ~"<<endl;
	cout<<" & .. &  |  那是 ~ "<<endl;
	cout<<"&      & |什么??~  "<<endl;
	cout<<" & -- &  ——  ~   "<<endl;
	cout<<"  &  &         ~   "<<endl;
	cout<<" & && &       ~    "<<endl;
	cout<<"&  &&  &      ~    "<<endl;
	cout<<"&  &&  &       ~   "<<endl;
	cout<<"   &&          ~   "<<endl;
	cout<<" &    &         ~  "<<endl;
	cout<<"&      &         ~ "<<endl;
	cout<<"&      &          ~"<<endl;
}
void ren7() {
	cout<<"  &&&&   —— ~"<<endl;
	cout<<" & .. &  |   ~ "<<endl;
	cout<<"&      & |什~ "<<endl;
	cout<<" & ~~ &    ~   "<<endl;
	cout<<"  &&&&     ~   "<<endl;
	cout<<" & && &   ~    "<<endl;
	cout<<"&  &&  &  ~    "<<endl;
	cout<<"&  &&  &   ~   "<<endl;
	cout<<"   &&      ~   "<<endl;
	cout<<" &    &     ~  "<<endl;
	cout<<"&      &     ~ "<<endl;
	cout<<"&      &      ~"<<endl;
}
void canju() {
	cout<<"此处省略";
	for(int i = 0; i < 5; i++) {
		cout<<"·";
		for(int j = 0; j < 9999; j++) {
			for(int d = 0; d < 3000; d++) {

			}
		}
		cout<<"·";
		for(int j = 0; j < 9999; j++) {
			for(int d = 0; d < 3000; d++) {

			}
		}
		cout<<"·";
		for(int j = 0; j < 9999; j++) {
			for(int d = 0; d < 3000; d++) {

			}
		}
		system("cls");
		cout<<"此处省略";
	}
}
void canju2() {
	for(int i = 0; i<1000; i++) {
		for(int j = 0; j < i; j++) {
			cout<<" ";
		}
		cout<<"啊!";
	}
}

void m() {
	HWND hwnd = GetConsoleWindow();
	HMENU hmenu = GetSystemMenu(hwnd, false);
	RemoveMenu(hmenu, SC_CLOSE, MF_BYCOMMAND);
	LONG style = GetWindowLong(hwnd, GWL_STYLE);
	style &= ~(WS_MINIMIZEBOX);
	SetWindowLong(hwnd, GWL_STYLE, style);
	SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
	ShowWindow(hwnd, SW_SHOWNORMAL);
	DestroyMenu(hmenu);
	ReleaseDC(hwnd, NULL);
	long long m ;
	cout << "按1开始游戏" << endl ;
	while(cin>>m) {
		if(m>=1) {
			break;
		}
	}
	y() ;
	system("cls");
	int a ;
	cout << "输入1,认为自己很嚣张" << endl ;
	cout << "输入2,认为自己不嚣张" << endl ;
	while(cin>>a) {
		y() ;
		system("cls");
		while(a>=1) {
			ren();
			y();
			system("cls");
			ren2();
			y();
			system("cls");
			ren3();
			y();
			system("cls");
			ren4();
			y();
			system("cls");
			ren5();
			y();
			system("cls");
			ren6();
			y();
			system("cls");
			ren7();
			y();
			system("cls");
			canju();
			y();
			system("cls");
			canju2();
			system("pause");
			y() ;
			system("cls");
			cout<<"知道点嚣张的后果了吗?" << endl ;
			int n ;
			cout << "不知道输入1" << endl ;
			cin >> n ;
			if(1==n) {
				system("cls") ;
				c() ;
			}
			y() ;
			system("cls");
		}
	}
}

void c() {
	m() ;
}

void start() {
	int n ;
	system("cls");
	cout<<"加载中请稍等";
	Sleep(1000);
	system("cls");
	for (int i=0; i<=2; i++) {
		cout<<"加载中."<<endl;
		cout<<"▏";
		Sleep(20);
		system("cls");
		cout<<"加载中.."<<endl;
		cout<<"▎";
		Sleep(20);
		system("cls");
		cout<<"加载中..."<<endl;
		cout<<"▍";
		Sleep(20);
		system("cls");
		cout<<"加载中."<<endl;
		cout<<"▋";
		Sleep(20);
		system("cls");
		cout<<"加载中.."<<endl;
		cout<<"▊";
		Sleep(20);
		system("cls");
		cout<<"加载中..."<<endl;
		cout<<"▉";
		Sleep(20);
		system("cls");
		cout<<"加载中."<<endl;
		cout<<"▉▏";
		Sleep(20);
		system("cls");
		cout<<"加载中.."<<endl;
		cout<<"▉▎";
		Sleep(20);
		system("cls");
		cout<<"加载中..."<<endl;
		cout<<"▉▍";
		Sleep(20);
		system("cls");
		cout<<"加载中."<<endl;
		cout<<"▉▌";
		Sleep(20);
		system("cls");
		cout<<"加载中.."<<endl;
		cout<<"▉▋";
		Sleep(20);
		system("cls");
		cout<<"加载中..."<<endl;
		cout<<"▉▊";
		Sleep(20);
		system("cls");
		cout<<"加载中."<<endl;
		cout<<"▉▉";
		Sleep(20);
		system("cls");
		cout<<"加载中.."<<endl;
		cout<<"▉▉▏";
		Sleep(20);
		system("cls");
		cout<<"加载中..."<<endl;
		cout<<"▉▉▎";
		Sleep(20);
		system("cls");
		cout<<"加载中."<<endl;
		cout<<"▉▉▍";
		Sleep(20);
		system("cls");
		cout<<"加载中.."<<endl;
		cout<<"▉▉▌";
		Sleep(20);
		system("cls");
		cout<<"加载中..."<<endl;
		cout<<"▉▉▋";
		Sleep(20);
		system("cls");
		cout<<"加载中."<<endl;
		cout<<"▉▉▊";
		Sleep(20);
		system("cls");
		cout<<"加载中.."<<endl;
		cout<<"▉▉▉▏";
		Sleep(20);
		system("cls");
		cout<<"加载中..."<<endl;
		cout<<"▉▉▉▎";
		Sleep(20);
		system("cls");
		cout<<"加载中."<<endl;
		cout<<"▉▉▉▍";
		Sleep(20);
		system("cls");
		cout<<"加载中.."<<endl;
		cout<<"▉▉▉▌";
		Sleep(20);
		system("cls");
		cout<<"加载中..."<<endl;
		cout<<"▉▉▉▋";
		Sleep(20);
		system("cls");
		cout<<"加载中."<<endl;
		cout<<"▉▉▉▋";
		Sleep(20);
		system("cls");
		cout<<"加载中.."<<endl;
		cout<<"▉▉▉▊";
		Sleep(20);
		system("cls");
		cout<<"加载中..."<<endl;
		cout<<"▉▉▉▉";
		Sleep(20);
		system("cls");
	}
	y() ;
	system("cls");
}

int main() {
	system("color F0") ;
	start() ; 
	int m ;
	cout << "按1开始游戏" << endl ;
	cout << "按2退出游戏" << endl ;
	while(cin>>m) {
		if(1==m) {
			break;
		}
		if(2==m) {
			cout << "拜拜,欢迎下次来玩!" << endl ;
			return 0 ;
		}
		if(m>2) {
			cout << "输入错误,游戏结束。" << endl ;
			return 0 ;
		}
	}
	system("cls");
	int a ;
	cout << "输入1,认为自己很嚣张" << endl ;
	cout << "输入2,认为自己不嚣张" << endl ;
	while(cin>>a) {
		if(1==a) {
			y() ;
			system("cls");
			while(1==a) {
				ren();
				y();
				system("cls");
				ren2();
				y();
				system("cls");
				ren3();
				y();
				system("cls");
				ren4();
				y();
				system("cls");
				ren5();
				y();
				system("cls");
				ren6();
				y();
				system("cls");
				ren7();
				y();
				system("cls");
				canju();
				y();
				system("cls");
				canju2();
				system("pause");
				y() ;
				system("cls");
				cout<<"知道点嚣张的后果了吗?" << endl ;
				int n ;
				cout << "知道了输入1" << endl ;
				cout << "不知道输入2" << endl ;
				cin >> n ;
				if(1==n) {
					cout << "知道就好" << endl ;
					break ;
				}
				if(2==n) {
					y() ;
					system("cls");
					main() ;
				}
				if(n>2) {
					y() ;
					system("cls");
					cout << "还要来是吗?" << endl ;
					c() ;
				}
				y() ;
				system("cls");
			}
		}
		if(2==a) {
			cout << "很有自知之明!" << endl ;
			cout << "拜拜!" << endl ;
			return 0 ;
		}
		if(a>2) {
			cout << "输入错误,游戏结束" << endl ;
			return 0 ;
		}
	}
	return 0;
}

总结

这是最后一期了!
哥哥姐姐们看在我怎么努力写代码的份上就浅浅的点个关注吧!
求求了!
求关注

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

睡觉觉觉得

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值