title: Set console title in C++ using a string
body: <p>I would like to know how to change the console title in C++ using a string as the new parameter.<br>
  I know you can use the <code>SetConsoleTitle</code> function of the Win32 API but that does not take a string parameter.<br>
  I need this because I am doing a Java native interface project with console effects and commands.<br>
  I am using windows and it only has to be compatible with Windows.</p>