Set console title in C++ using a string
问题 I would like to know how to change the console title in C++ using a string as the new parameter. I know you can use the SetConsoleTitle function of the Win32 API but that does not take a string parameter. I need this because I am doing a Java native interface project with console effects and commands. I am using windows and it only has to be compatible with Windows. 回答1: The SetConsoleTitle function does indeed take a string argument. It's just that the kind of string depends on the use of