📜  设置 cmd 大小 c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.606000             🧑  作者: Mango

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