Logo going out of border

I have this function here that will print out a border outside this logo.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const string Car1[CARSIZE]=

{



"           _______________",
"        //~~~~~~~~~~~~~~~\\  |",
"    o  / /_________________\ \| o",
"     ---------------------------",
"   / /======|=D=O=D=G=E=|======\ \ ",
"   \_____________________________/ "



};

Unfortunately, my bottom border of horizontal line prints out fine. My top border horizontal doesn't. The horizontal line on the top is like 2 characters long. Morover, my image is larger then the length of boundary? How can irevise this 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
if (borderselection=='a')
		{
			//print the top part of boundary border
			for(int i=0;i<carimages[0].length();i++);
			{
				cout<<(char)(196);
			}
				cout<<(char)(191);
				//Print next row and the logo too
			for(int i=0;i<CARSIZE;i++)
			{
				cout<<"\n";
				cout<<(char)(179)<<carimages[i]<<(char)(179);
				
			}
			//Draw the bottom border
			cout<<endl;
			cout<<(char)(192);
			for(int i=0;i<carimages[0].length();i++)
			{
				cout<<(char)(196);
			}
			cout<<(char)(217);
		}
Ok, I forgot to delete the semi colon on line 4 so that fixex the horizontal line. Every side of the border is ok except the right. This is where the image is to large causing the vertical line to break apart.


----------------------------
| |
| Image is there. BUt to longgggggggg
| |
|_____________________|

This would be a good visual view of whats happening right now
Ok, I forgot to delete the semi colon on line 4 so that fixex the horizontal line. Every side of the border is ok except the right. This is where the image is to large causing the vertical line to break apart.


----------------------------
|
| Image is there. BUt to longgggggggg
|
|_____________________

This would be a good visual view of whats happening right now. Somehow vertical bars are not being cohesive with me at this moment, but the vertical vars are on the right side and randomly outputted.
Topic archived. No new replies allowed.