//change the console size
#include <stdio.h>
#include<stdlib.h>  //必须有
int main(int argc, char *argv[])
{
system("mode con cols=80 lines=40  "); //cols为控制台的宽度,lines则代表控制台的高度。
printf("change the console size\n");
return 0;
}

C程序之修改Windows的控制台大小

相关文章:

  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2021-05-04
  • 2021-11-20
  • 2022-02-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-22
  • 2021-12-06
  • 2022-12-23
  • 2021-10-03
  • 2021-09-09
  • 2022-12-23
相关资源
相似解决方案