当前位置:首页 > 编程笔记 > 正文
已解决

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

来自网友在路上 155855提问 提问时间:2023-10-06 21:59:03阅读次数: 55

最佳答案 问答题库558位专家为你答疑解惑

CSDN

系列文章目录

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

文章目录

  • 系列文章目录
  • 前言
  • 一、个人名片
  • 二、描述
  • 三、代码
    • 1.代码
  • 总结


前言


(嘻嘻)


一、个人名片

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

二、描述

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

三、代码

1.代码

上代码:

//细节成败于成功!
//没完工!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#include<bits/stdc++.h>
#include<windows.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() ;
}int main() {system("color F0") ;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;
}

总结

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

查看全文

99%的人还看了

猜你感兴趣

版权申明

本文"一个很愚蠢的游戏(中)!!!":http://eshow365.cn/6-16491-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!