版本比较
连点器
正文
增加 2 行删除 2 行
3 行未改动456788910111248 行未改动6162636465656667686994 行未改动3 行未改动#include <ctime>#include <windows.h>#include <vector>#include <string>using namespace std; using namespace std;void set_cursor(bool hide) { // 隐藏/显示 光标 HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE); CONSOLE_CURSOR_INFO CursorInfo; GetConsoleCursorInfo(handle, &CursorInfo); // 获取控制台光标信息48 行未改动 system("cls"); int cont = true, lst_tim = clock(); set_cursor(false); while(true) { gotoxy(0, 0); gotoxy(0, 0); std::printf("连点器%s. . . \n\n", cont ? "运行中" : "已暂停"); std::printf("速度:%d次/秒\n", spd); std::printf(" 空格键\t%s\n", cont ? "暂停" : "继续"); std::printf(" Esc键 \t退出\n");94 行未改动