### Need.

can you give me a assist here? how can i make this vertical road to a horizontal road? Give me some hints on moving the Road.
Here's the Link of the code(i can't post everything,so i put it in a download link:
http://www.box.com/s/dua9jh44kdq18x51w6h4 (the Program 1)
closed account (3qX21hU5)
Just a tip most people here wont download stuff from new members or even regular members so you might better off posting some of your code or using a paste bin.
From a quick look at your program, not sure if I have this right.

But I quickly made something.

It's just a case of outputting the array in another way.

 ``12345678910111213141516171819202122232425262728293031323334353637383940414243`` ``````#include int main() { int road[ 5 ][ 10 ] = { { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 1, 1, 0, 1, 1, 0, 1, 1, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } }; for( int x = 0; x < 5; ++x ) { for( int y = 0; y < 10; ++y ) { if( road[ x ][ y ] == 0 ) std::cout << ' '; else std::cout << ( char ) 219; } std::cout << '\n'; } std::cout << "\n\n\n"; for( int y = 9; y >= 0; --y ) { for( int x = 0; x < 5; ++x ) { if( road[ x ][ y ] == 0 ) std::cout << ' '; else std::cout << ( char ) 219; } std::cout << '\n'; } std::cout << "\n\n"; return 0; }``````
Last edited on
@Zereo, you don't have to download it. It loaded in another page.
closed account (3qX21hU5)
Ahh just saw download in his post so never even bothered clicking on the link