Re: multidimensional array
use indentations to spot errors easier. Your code seems fine...its your cout statement that is wrong. Basically when you cout like that your printing out the 4th element in the 2nd array. So in your case that would print out 77.
Originally posted by Unregistered i want to read the following data from the input file in a towway dimensional array
2001 25 65 89
2002 45 69 77
I wrote the following code:
is there anything wrong with this code please because i does not read well . thanks