无
(嘻嘻)
个人主页:睡觉觉觉得
CSDN新晋作者
欢迎 点赞✍评论⭐收藏
✨收录专栏:游戏
希望作者的文章能对你有所帮助,有不足的地方请在评论区留言指正,大家一起学习交流!
无聊的时候随便写的代码!
好像有点水
上代码:
//细节成败于成功!
//没完工!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#include
#include
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;
}