方法一:

#include <stdlib.h>
int main()
{
  system("title 标题文字");
}

方法二:

#include <windows.h>
int main()
{
  char *pTitle = "Title";
  SetConsoleTitle(pTitle);
}

或者

#include <windows.h>
int main()
{
  SetConsoleTitle("Title");
}

results matching ""

    No results matching ""