C언어 프로젝트
·
대학교/C언어
// 커서 숨기는 함수void CursorView(char show) { HANDLE hConsole; CONSOLE_CURSOR_INFO ConsoleCursor; hConsole = GetStdHandle(STD_OUTPUT_HANDLE); ConsoleCursor.bVisible = show; ConsoleCursor.dwSize = 1; SetConsoleCursorInfo(hConsole, &ConsoleCursor);}#include#include#include#include// int num1(){}int main() { int rnd; char input; srand(time(NULL)); while (1) { rnd = rand() % 10; // 0 ~ 9 사이의 값 switch ..