From ea6b684499ccd765dd8632120472bb1ec66463de Mon Sep 17 00:00:00 2001 From: AceTeemo <609544959@qq.com> Date: Wed, 9 Jan 2019 19:57:33 +0800 Subject: [PATCH] 5 --- v4.c => v5.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) rename v4.c => v5.c (80%) 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"); +}