c++ set console title

C++
#include <Windows.h>

int main()
{
	SetConsoleTitleA("title name");
}
Source

Also in C++: