-
个人简介
个人大事记:
2021学年第一次入队
2021学年集训第一次退队
2022暑假再次与新生入队
2022.9.24第二次退队
个人简介:
我头像自己做的,别盗
不要在机房点windows logo再搜索cmd,又点一下命令行输入taskkill /F /IM studentmain.exe再按回车,运行了电脑不会中病毒,不会爆炸,不会删除文件,但你也不能继续在铁一读书了[doge]
我试过,差点被扔出机房
哔哩哔哩--干杯!如何让OICLASS崩溃:新问题!可能马上被修复,所有人快来看看!
只要你在机房,就不要复制粘贴!!! 机房不可玩游戏!!! 被发现别怪我!!! 复制粘贴任何代码不写出处的(包括下面),我只能骂你不要脸!
躲避弹幕小游戏(横屏,竖屏在下面):
//made by ProGrBl (0260) #include<ctime> #include<string> #include<conio.h> #include<cstring> #include<cstdlib> #include<iomanip> #include<iostream> #include<algorithm> #include <Windows.h> #include<queue> #include<vector> #include<sstream> #include<stdio.h> #define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? true : false) using namespace std; int x=22,y=70,maxx=0; char xy[22][70]; struct bmb{ int xx,yy; }; vector<bmb> bomb; int sj=0,num; bool gch(char ch){if(getch()==ch)return true;return false;} bool chd(char ch){if(KEY_DOWN(ch)){return true; }return false;} void sx(int sc){ string st="Score : ",st1; stringstream ss; ss.clear(); ss<<sc; ss>>st1; st+=st1; st+="\n\n"; system("cls"); for(int i=0;i<x;i++){for(int j=0;j<y;j++){ st+=xy[i][j]; }st+="\n"; }cout<<st; } bool game(){ bomb.clear(); int score=0,ball=35,enemy; double spd=1; bool stopped=false; for(int i=0;i<x;i++)memset(xy[i],' ',y); while(!stopped){ sj=(sj+1)%200; sx(score); Sleep(10); for(int i=0;i<x;i++)memset(xy[i],' ',y); score++; xy[x-1][ball]='*'; if(chd('D')){ball++;cin.sync(); } if(chd('A')){ball--;cin.sync(); } if(ball>=y)ball=y-1; if(ball<0)ball=0; if(sj%2==1){bomb.push_back((bmb){0,rand()%y}); } if(sj%2==1)for(int i=0;i<bomb.size();i++){bomb[i].xx++;if(bomb[i].xx>=x)bomb.erase(bomb.begin()); } for(int i=0;i<bomb.size();i++){if(xy[bomb[i].xx][bomb[i].yy]=='*')stopped=true;xy[bomb[i].xx][bomb[i].yy]='O'; } //spd*=1.1; } if(score>maxx)maxx=score; cout<<endl<<endl<<"YOU DIED!"<<endl; cout<<"MAX:"<<maxx<<endl; Sleep(800); } int main(){ char chh; srand((unsigned)getpid()); while(true){ cout<<"R to start--a to left,d to right"; fflush(stdin); chh=getch(); while(chh!='R'&&chh!='r')chh=getch(); if(chh=='r'||chh=='R'){ game(); } else break; } cout<<"BYE!"; }
竖屏版:
//made by ProGrBl (0260) #include<ctime> #include<string> #include<conio.h> #include<cstring> #include<cstdlib> #include<iomanip> #include<iostream> #include<algorithm> #include <Windows.h> #include<queue> #include<vector> #include<sstream> #include<stdio.h> #define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? true : false) using namespace std; int x=60,y=70,maxx=0; char xy[60][70]; struct bmb{ int xx,yy; }; vector<bmb> bomb; int sj=0,num; bool gch(char ch){if(getch()==ch)return true;return false;} bool chd(char ch){if(KEY_DOWN(ch)){return true; }return false;} void sx(int sc){ string st="Score : ",st1; stringstream ss; ss.clear(); ss<<sc; ss>>st1; st+=st1; st+="\n\n"; system("cls"); for(int i=0;i<x;i++){for(int j=0;j<y;j++){ st+=xy[i][j]; }st+="\n"; }cout<<st; } bool game(){ bomb.clear(); int score=0,ball=35,enemy; double spd=1; bool stopped=false; for(int i=0;i<x;i++)memset(xy[i],' ',y); while(!stopped){ sj=(sj+1)%200; sx(score); Sleep(10); for(int i=0;i<x;i++)memset(xy[i],' ',y); score++; xy[x-1][ball]='*'; if(chd('D')){ball++;cin.sync(); } if(chd('A')){ball--;cin.sync(); } if(ball>=y)ball=y-1; if(ball<0)ball=0; if(sj%2==1){bomb.push_back((bmb){0,rand()%y}); } if(sj%2==1)for(int i=0;i<bomb.size();i++){bomb[i].xx++;if(bomb[i].xx>=x)bomb.erase(bomb.begin()); } for(int i=0;i<bomb.size();i++){if(xy[bomb[i].xx][bomb[i].yy]=='*')stopped=true;xy[bomb[i].xx][bomb[i].yy]='O'; } //spd*=1.1; } if(score>maxx)maxx=score; cout<<endl<<endl<<"YOU DIED!"<<endl; cout<<"MAX:"<<maxx<<endl; Sleep(800); } int main(){ char chh; srand((unsigned)getpid()); while(true){ cout<<"R to start--a to left,d to right"; fflush(stdin); chh=getch(); while(chh!='R'&&chh!='r')chh=getch(); if(chh=='r'||chh=='R'){ game(); } else break; } cout<<"BYE!"; }
狠狠地感恩感谢 你们的付出暖我的心
-
最近活动
- 番预——广搜加强题 作业
- 番禺三校区第5周训练题 作业
- 番禺预备班作业——栈+递归初步 作业
- 番禺三校区第4周训练题 作业
- 番禺预备班作业——贪心 作业
- 番禺三校区第3周训练题 作业
- 番禺预备班作业--模拟+枚举 作业
- 番禺三校区开学热身赛 OI
- Selection test 2-2 IOI
- Selection test 2-1 IOI
- 番禺第二期作业7 作业
- 番禺第二期作业6 作业
- 番禺第二期阶段测试二 IOI
- 番禺第二期阶段测试一 OI
- 番禺第二期作业4 作业
- 番禺第二期作业3 作业
- 番禺第二期作业1 作业
- 番禺第二期作业2 作业
- 2022预备班暑假作业三 作业
- 2022预备班暑假作业二 作业
- 2022预备班暑假作业一 作业
- selection test IOI
- 爆踩 ckj 信心赛 OI
- ty普及组模拟赛(张冀飞命题) OI
- test OI
- ty普及组模拟赛(林立城的低质量模拟赛) OI
- ty普及组模拟赛(AKCSP信心赛) OI
- ty普及组模拟赛(孔德锐命题) OI
- ty普及组模拟赛(吊打CKJ信心赛) OI
- 冬令营开营小练 OI
- 2021TYOI秋季营结营测试 OI
- 2021tyoi秋季营第16周小测 OI
- 2021tyoi秋季营第15周小测 OI
- 2021tyoi秋季营第15周广搜1练习 OI
- 2021tyoi秋季营第14周小测 OI
- 2021tyoi秋季营第14周深搜2提高练习 OI
- 2021tyoi秋季营第13周小测 OI
- 2021tyoi秋季营第13周图的存储和遍历 OI
- *图的存储及广搜遍历 OI
- 2021tyoi秋季营第11周递归提高练习 OI
- *图的存储及深搜遍历 OI
- 2021tyoi秋季营第10周小测 OI
- *二叉树与递归算法 OI
- 2021tyoi秋季营第8周基础练习题 OI
- 2021tyoi秋季营第7周基础练习题 OI
- 2021tyoi秋季营第4周字符串提高练习 OI
- 2021tyoi秋季营第3周字符串热身练习 OI
- 2021tyoi秋季营第2周函数练习 OI
- 2021tyoi秋季营第1周二维、字符数组练习 OI
- 2021tyoi秋季营热身赛 OI
- 程序结构 OI
- TYOI入门组模拟赛7 OI
- TYOI入门组模拟赛6 OI
- TYOI入门组模拟赛5 OI
- TYOI入门组模拟赛4 OI
- 2021第二届信息学夏令营线上赛3 OI
- 2021第二届信息学夏令营线上赛2 OI
- 2021第二届信息学夏令营线上赛1 OI
- TYOI入门组模拟赛3 OI
- TYOI入门组模拟赛2 OI
- TYOI入门组模拟赛1 OI
- 背包型动态规划1 OI
- 最长公共子序列 OI
- 二维动规1 OI
-
Stat
-
Rating