My Not So special ASCII Art(I can say I am proud of the code)

ScreenShot2

It doesn’t look like something special, but I am most proud of the code:

 void PrintIntroduction()
{
	string text = "Welcome to the game";
	//top of the Window
	cout << (char)201;
	for (int i = 0; i < text.length(); i++)
	{
		cout << (char)205;
	}
	cout << (char)187 << endl;
	//middle of the window
	cout << (char)186;
	cout << text;
	cout << (char)186 << endl;
	//bottom of the window
	cout << (char)200;
	for (int i = 0; i < text.length(); i++)
	{
		cout << (char)205;
	}
	cout << (char)188 << endl;
}
1 Like

Looks special to me :grin:

Privacy & Terms