-
个人简介
个人大事记:
2021学年第一次入队
2021学年集训第一次退队
2022暑假再次与新生入队
2022.9.24第二次退队
退队后将保持进度做题,不再积极参加讨论
同学们,2023再见!
个人简介:
<input type="submit" class="rounded primary button" value="保存所有修改">我头像自己做的,别盗
不要在机房点windows logo再搜索cmd,又点一下命令行输入taskkill /F /IM studentmain.exe再按回车,运行了电脑不会中病毒,不会爆炸,不会删除文件,但你也不能继续在铁一读书了[doge]
我试过,差点被扔出机房
哔哩哔哩--干杯!如何让OICLASS崩溃:新问题!可能马上被修复,所有人快来看看!
只要你在机房,就不要复制粘贴!!! 机房不可玩游戏!!! 被发现别怪我!!! 复制粘贴任何代码不写出处的(包括下面),我只能骂你不要脸!
躲避弹幕小游戏(横屏,竖屏在下面):<input type="submit" class="rounded primary button" value="保存所有修改">
//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!"; }
竖屏版: <input type="submit" class="rounded primary button" value="保存所有修改">
//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!"; }
chourmd:caiyy,zhaozy
haopy:wenzx,wenzy,fankh,huh,hezy,hansr,xumy,tangny,wangzr,lehy,mamx,xiaoht,zhouy,xieyh
zunjingdelaos:chxl,liurj,linl,fangy,maxf,zhanglh