You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
|
|
void hide() {
|
|
|
|
|
CONSOLE_CURSOR_INFO cursor_info = {1, 0};
|
|
|
|
|
SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), &cursor_info);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void tp(short x, short y) {
|
|
|
|
|
COORD pos = {x, y};
|
|
|
|
|
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void color(short x) {
|
|
|
|
|
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), x);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void title() {
|
|
|
|
|
SetConsoleTitle("ͼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void window() {
|
|
|
|
|
system("mode con cols=105 lines=30");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void adm_window() {
|
|
|
|
|
system("mode con cols=105 lines=37");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void change_window() {
|
|
|
|
|
system("mode con cols=105 lines=31");
|
|
|
|
|
Sleep(1);
|
|
|
|
|
system("mode con cols=105 lines=32");
|
|
|
|
|
Sleep(1);
|
|
|
|
|
system("mode con cols=105 lines=33");
|
|
|
|
|
Sleep(1);
|
|
|
|
|
system("mode con cols=105 lines=34");
|
|
|
|
|
Sleep(1);
|
|
|
|
|
system("mode con cols=105 lines=35");
|
|
|
|
|
Sleep(1);
|
|
|
|
|
system("mode con cols=105 lines=36");
|
|
|
|
|
Sleep(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void recovery_window() {
|
|
|
|
|
system("mode con cols=105 lines=36");
|
|
|
|
|
Sleep(1);
|
|
|
|
|
system("mode con cols=105 lines=35");
|
|
|
|
|
Sleep(1);
|
|
|
|
|
system("mode con cols=105 lines=34");
|
|
|
|
|
Sleep(1);
|
|
|
|
|
system("mode con cols=105 lines=33");
|
|
|
|
|
Sleep(1);
|
|
|
|
|
system("mode con cols=105 lines=32");
|
|
|
|
|
Sleep(1);
|
|
|
|
|
system("mode con cols=105 lines=31");
|
|
|
|
|
Sleep(1);
|
|
|
|
|
}
|
|
|
|
|
void cls() {
|
|
|
|
|
system("cls");
|
|
|
|
|
}
|