Re: Need help with a simple program
Quote:
Last problem I have( I swear). I have to number the rows and columns, but I can't figoure out how to space the numbers out accordingly.
Well, if you've already displayed the board and then want to number the rows and column, you'd have to use an OS-specific function to move the cursor back to previous lines and write in the numbers...
An alternative is to output the info into a 2D array as opposed to directly to the screen (you'd need to allocate an extra row and column in teh array for the numbers), then add in the numbers into the array afterward. Then display the final array with cout.