I'm trying to create a two-dimensional array whose size is based on user input, then the array is filled with random numbers depending on how big the user wants it. I've got most of it stapled out now I just can't get the darn thing to print in a 2D array, it all comes out as one column.
Because of this little number: cout << array[i][j] << endl; you are telling it to put a newline after every element it outputs. You should move that to outside of the embeded for loop but inside of the first for loop.
EDIT: You should move THE "endl" to the outer for loop. Sorry about that.