LPCTSTR Process = ("Test game");
LPCTSTR windowName = Process(" Text");
system("color 0a");
SetConsoleTitle(windowName);
任何人都可以制作这个posiblle吗?
答案 0 :(得分:2)
要更改当前控制台标题,您可以使用SetConsoleTitle WinAPI函数:
#include <iostream>
#include <Windows.h>
int main(){
wchar_t newTitle[255] = L"My New Console Title";
SetConsoleTitle(newTitle); // set the current console title
return 0;
}