Unexpected new line?!

Hi, it's me again with another problem. I made a simple menu, but in the title there is a new line, which should not be there.
Here is the code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include <iostream>
#include <Windows.h>
#include <Game.h>

using namespace std;

int menu_choose;

int main()
{
	menu:
	system("cls");
	SetConsoleTitle("Menu");
	cout << "[======]  []      []  [======]              [====]        [====]      [====]  " << endl;
	cout << "   []       []  []       []                 []    []      []    []  []      []" << endl;
	cout << "   []         []         []   ------------  []    []      []    []  []        " << endl;
	cout << "   []         []         []   |          |  [====]        [====]    []  [====] " << endl;
	cout << "   []       []  []       []   ------------  []    []      []        []      []  " << endl;
	cout << "   []     []      []     []                 []      []    []          [====]" << endl << endl << endl;
	cout << "*************" << endl;
	cout << "*1.New Game *" << endl;
	cout << "*************" << endl;
	cout << "*2.Load Game*" << endl;
	cout << "*************" << endl;
	cout << "*3.Exit     *" << endl;
	cout << "*************" << endl;
	cin >> menu_choose;
	switch (menu_choose)
	{
	case 1:
		Game_INIT();
		break;
	case 2:
		cout << "Sorry, no save/load system." << endl;
		return 1;
		break;
	case 3:
		system("cls");
		return 1;
		break;
	default:
		cout << "Oops! Something went wrong, restarting" << endl;
		goto menu;
		break;
	}
}


And this is what I get:
http://i.imgur.com/R4MFmoJ.jpg?1?7269
You probably wrote one space too much, resulting in text going down one line.
Remove spaces on line 18 to make them look as long as the other lines.
Last edited on
You probably wrote one space too much, resulting in text going down one line.
Remove spaces on line 18 to make them look as long as the other lines.

THX! I think I inserted the space accidentally.
Topic archived. No new replies allowed.