Drawing a car image using string?

So, I have a code here that prints out the image of a car. I don't know what I have done incorrectly in my const string carimage. The output I get in this function is having a different output. I need help fixing this issue. Does It have anything to do with spaces in my string? I did try it but it doesn't even change the display, except it did once, but I can't get it close to the car image. Basically, the car image was still off.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  //Make an image of car using string data type. Two dimensional array.
	const string carimage[arrayrowsize][arraycolumnsize]=

	{
		{" ---------","---------","---"},
		{"|   ","		 "," |"},
		{"|		   ","	 ","   \ "},
		{"|		   ","        ","\______"},
		{"|___O___","_________","___O_____________|"},
		{"    O	  ","         ","  O        "}


	
	
	};




--------
|               |
|                                 ?
|                                    ?___________                               
|___O____________O________|
    O            O




Also here is my function that prints out the carimage of the two dimensional array
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
void cararrayprinter (const string cardisplayimage[][arraycolumnsize], int arrayrowsize)
	{
		int row=0;
		int column=0;
		int index=0;

		cout<<"\n\n\n\n";
		for (row=0;row<arrayrowsize;row++)
		{
			
				for(column=0;column<arraycolumnsize;column++)
				{
					cout<<cardisplayimage[row][column];
				
				}
			cout<<endl;
		}
	
	
	}
Topic archived. No new replies allowed.