黑客数字雨
来源:互联网 发布:怎么卸载java 编辑:程序博客网 时间:2024/05/21 10:55
#include <stdio.h>#include <time.h>#include <windows.h>typedef struct m{int x;int y;char ch;}QQ;/*移动光标位置*/void gotoxy(int x, int y){HANDLE hout;COORD pos;pos.X = x;pos.Y = y;hout = GetStdHandle(STD_OUTPUT_HANDLE);SetConsoleCursorPosition(hout, pos);}/*隐藏光标*/void show_cursor(int hide){CONSOLE_CURSOR_INFO cciCursor;HANDLE hout;hout = GetStdHandle(STD_OUTPUT_HANDLE);if(GetConsoleCursorInfo(hout, &cciCursor)){ cciCursor.bVisible = hide; SetConsoleCursorInfo(hout, &cciCursor); }}/*设置颜色*/void set_color(int color){SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), color);}main(){int i,j;int t=0;QQ M[110];srand(time(NULL));show_cursor(0);for(i=0;i<110;i++){M[i].x=rand()%80;M[i].y=rand()%16;}while(1){for(i=0;i<110;i++){M[i].ch=rand()%95+33;set_color(0x2);gotoxy(M[i].x,M[i].y);putchar(M[i].ch);gotoxy(M[i].x,M[i].y-8);putchar(' ');if(M[i].y>15){for(j=16;j<=22;j++){if(M[i].y>j){gotoxy(M[i].x,M[i].y-(22-j));putchar(' ');}}}M[i].y++;if(M[i].y>23){M[i].x=rand()%80;M[i].y=rand()%16;}gotoxy(M[i].x,M[i].y);set_color(0xA);putchar(M[i].ch);}Sleep(100);}}
0 0
- 黑客数字雨
- 数字货币交易所ShapeShift认为黑客…
- 黑客
- 黑客
- 黑客
- 黑客
- 黑客
- 黑客
- 黑客
- 黑客
- 黑客
- 黑客
- 比特币水涨船高,黑客盯死数字货币
- 黑客,黑客!
- 数字雨
- 数字雨
- 数字雨
- 黑客守则&黑客精神
- HIve On Spark 安装, Mysql配置,执行引擎设置
- C++学习---(三)面向对象的优缺点
- C语言中如何将二维数组作为函数的参数传递
- mysql的优化(表的设计,优化步骤,四种索引,分析慢查询,使用索引的深入解析,存储引擎分析,表的分割,数据库配置)
- netty的使用
- 黑客数字雨
- win32+VS2013下使用pthread
- 实用英语
- SQLite指令
- XML笔记
- LeetCode Problem 237. Delete Node in a Linked List
- Unity 3D 文件加密下 AES的加密解密使用
- linux下Jenkins自动构建android
- “Microsoft.Practices.EnterpriseLibrary.Data.Database”的类型初始值设定项引发异常。