multidimensional arrays

solved
Last edited on
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..

ah ok, well that sorts the array formatting, but my output numbers are still wrong
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..
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.