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?
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.