diff --git a/v4.c b/v5.c similarity index 80% rename from v4.c rename to v5.c index 804f119..58cb81b 100644 --- a/v4.c +++ b/v5.c @@ -209,3 +209,33 @@ void Print(char d) case 'D':case 'd':right();break; } } +/*定位光标*/ +void xy(){ + +//获取控制台缓冲区句柄 + HANDLE ConsoleHandle = GetStdHandle(STD_OUTPUT_HANDLE); +//设置光标位置 + SetConsoleCursorPosition(ConsoleHandle, coord); +} +/*隐藏屏幕指针 */ +void HideCursor() { + CONSOLE_CURSOR_INFO cursor_info = { 1,0 }; + SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info); +} +void win() +{ + system("cls"); + system("color 73"); + system("mode con cols=38 lines=13"); + printf("\n █ █ █████ █ █ "); + printf("\n █ █ █ █ █ █ "); + printf("\n █ █ █ █ █ "); + printf("\n █ █ █ █ █ "); + printf("\n █ █████ █████ \n"); + printf("\n █ █ █ ███ █ █ "); + printf("\n █ █ █ █ ██ █ "); + printf("\n █ █ █ █ █ █ █ "); + printf("\n ██ ██ █ █ ██ "); + printf("\n █ █ ███ █ █ "); + system("pause"); +}