multidimensional arrays

May 19, 2010 at 10:38am
solved
Last edited on May 19, 2010 at 12:47pm
May 19, 2010 at 11:37am
you might want to put an endl so that a new row is created after each column is printed...

im learning arrays too, making a jumble the word game..
though Im having trouble applying it to a program..

May 19, 2010 at 11:45am
ah ok, well that sorts the array formatting, but my output numbers are still wrong
May 19, 2010 at 12:40pm
Ah, I figured.. move your cout inside your inner for loop so that it prints twice per row. and replace your equivalent to an equal sign. Double equal sign is a relational operator, not an arithmetic operator.. put a single equal sign and that should do it..
May 19, 2010 at 12:42pm
having the double equal sign does not assign the formula to the specific array, that is why the large numbers appear. technically, it just 'compared' the array with the formulas, and not assign it...
Topic archived. No new replies allowed.