小程序 视频
1 #include <iostream> 2 #include <cstdlib> 3 #include <ctime> 4 #include <windows.h> 5 using namespace std; 6 void gotoxy(int x,int y){ 7 COORD c; 8 c.X = x - 1; 9 c.Y = y - 1; 10 SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),c); 11 } 12 int main() { 13 int q; 14 srand(time(0)); 15 cout<<"^_^视频库<include 指南手册>"<<endl; 16 cout<<"按1111111建寻求HELP"<<endl; 17 cout<<"按78建获取指南手册"<<endl; 18 cout<<"1.刺毛球"<<endl; 19 cout<<"2.疯狂方正"<<endl; 20 cout<<"3.鬼畜"<<endl; 21 cout<<"4.变化的字符"<<endl; 22 cout<<"5.火焰"<<endl; 23 cout<<"6.路飞打木板"<<endl; 24 while(cin>>q){ 25 if(q==1111111){ 26 cout<<"帮助?不存在的!"<<endl; 27 while(1){ 28 cout<<"傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻傻"; 29 _sleep(200); 30 } 31 } 32 if(q==78){ 33 cout<<"指南:"<<endl; 34 cout<<"?"<<"点朝南,没毛病"; 35 } 36 if(q==1){ 37 38 short x=2,y=25; 39 int a,b,c; 40 c=rand()%25+25; 41 for(int i=x;i<=c;i++){ 42 a=rand()%2; 43 b=rand()%2; 44 x=x+a; 45 y=y+b; 46 gotoxy(y,x); 47 cout<<"*=*"<<endl; 48 cout<<"=*="<<endl; 49 _sleep(200); 50 system("cls"); 51 } 52 } 53 if(q==2){ 54 short x=2,y=25; 55 int a,b,c; 56 57 58 for(int i=1;i<=23;i++){ 59 x++; 60 gotoxy(y,x); 61 cout<<"*=*"<<endl; 62 _sleep(1); 63 system("cls"); 64 } 65 for(int i=1;i<=23;i++){ 66 y++; 67 gotoxy(y,x); 68 cout<<"*=*"<<endl; 69 _sleep(1); 70 system("cls"); 71 } 72 for(int i=1;i<=23;i++){ 73 x--; 74 gotoxy(y,x); 75 cout<<"*=*"<<endl; 76 _sleep(1); 77 system("cls"); 78 } 79 for(int i=1;i<=23;i++){ 80 y--; 81 gotoxy(y,x); 82 cout<<"*=*"<<endl; 83 _sleep(1); 84 system("cls"); 85 } 86 for(int i=1;i<=22;i++){ 87 x++; 88 gotoxy(y,x); 89 cout<<"*=*"<<endl; 90 _sleep(1); 91 system("cls"); 92 } 93 for(int i=1;i<=22;i++){ 94 y++; 95 gotoxy(y,x); 96 cout<<"*=*"<<endl; 97 _sleep(1); 98 system("cls"); 99 } 100 for(int i=1;i<=22;i++){ 101 x--; 102 gotoxy(y,x); 103 cout<<"*=*"<<endl; 104 _sleep(1); 105 system("cls"); 106 } 107 for(int i=1;i<=22;i++){ 108 y--; 109 gotoxy(y,x); 110 cout<<"*=*"<<endl; 111 _sleep(1); 112 system("cls"); 113 } 114 for(int i=1;i<=21;i++){ 115 x++; 116 gotoxy(y,x); 117 cout<<"*=*"<<endl; 118 _sleep(1); 119 system("cls"); 120 } 121 for(int i=1;i<=21;i++){ 122 y++; 123 gotoxy(y,x); 124 cout<<"*=*"<<endl; 125 _sleep(1); 126 system("cls"); 127 } 128 for(int i=1;i<=21;i++){ 129 x--; 130 gotoxy(y,x); 131 cout<<"*=*"<<endl; 132 _sleep(1); 133 system("cls"); 134 } 135 for(int i=1;i<=21;i++){ 136 y--; 137 gotoxy(y,x); 138 cout<<"*=*"<<endl; 139 _sleep(1); 140 system("cls"); 141 } 142 } 143 if(q==3){ 144 long a=1,b; 145 for(int i=1;i<=10000;i++){ 146 a=a*50000; 147 cout<<a<<"*"; 148 } 149 } 150 if(q==4){ 151 int x=2,y=25; 152 int a; 153 for(int i=1;i<=3;i++){ 154 x++; 155 gotoxy(y,x); 156 cout<<"O"<<endl; 157 _sleep(100); 158 system("cls"); 159 } 160 for(int i=1;i<=23;i++){ 161 y++; 162 gotoxy(y,x); 163 cout<<"O"; 164 _sleep(100); 165 system("cls"); 166 } 167 for(int i=1;i<=23;i++){ 168 y++; 169 gotoxy(y,x); 170 cout<<"&*&"; 171 _sleep(100); 172 system("cls"); 173 } 174 for(int i=1;i<=30;i++){ 175 y--; 176 gotoxy(y,x); 177 cout<<"($_$)"<<"E E"; 178 _sleep(x+25); 179 system("cls"); 180 } 181 for(int i=1;i<=37;i++){ 182 y--; 183 x++; 184 gotoxy(y,x); 185 cout<<"[$(*)$]"<<"^_^"; 186 _sleep(1); 187 system("cls"); 188 } 189 } 190 if(q==5){ 191 short x=2,y=25; 192 int a,b,c; 193 c=23; 194 for(int i=x;i<=c;i++){ 195 x++; 196 y++; 197 gotoxy(y,x); 198 cout<<"(大火)"<<endl; 199 _sleep(20); 200 } 201 for(int i=x;i<=y;i++){ 202 x--; 203 y++; 204 gotoxy(y,x); 205 cout<<"FIRE!"; 206 _sleep(100); 207 } 208 } 209 if(q==6){ 210 int y=10,x=20,z=0; 211 gotoxy(x,y); 212 cout<<"O"; 213 y++; 214 gotoxy(x,y); 215 cout<<"|"; 216 x--; 217 gotoxy(x,y); 218 cout<<"-"; 219 x=x+2; 220 gotoxy(x,y); 221 cout<<"-"; 222 z=x; 223 z=z+10; 224 gotoxy(z,y); 225 cout<<"!!"; 226 _sleep(100); 227 for(int i=x-3;i<=30;i++){ 228 x++; 229 gotoxy(x,y); 230 cout<<"-"; 231 _sleep(200); 232 } 233 } 234 } 235 236 return 0; 237 }
未经允许,严禁转载。