void setConsoleSize(int WIDHT, int HEIGHT) { HWND console = GetConsoleWindow(); RECT r; GetWindowRect(console, &r); MoveWindow(console, r.left, r.top, WIDHT, HEIGHT, TRUE); }