#include <windows.h>using namespace std;int main (void){ HWND console = GetConsoleWindow(); RECT r; GetWindowRect(console, &r); MoveWindow(console, r.left, r.top, 800, 100, TRUE); // 800 width, 100 height }