02-19-2003, 11:15 PM
I know there is something in c++ similar to the DATA statements in qb. I want to make a simple map, you know then:
Im brushing up on arrays in c++ cause im sure it will need them. is this the way to do it in c++ or is there a more effective way?
Code:
DATA 1,2,5,6,4,7,8,9
DATA 5,2,6,8,9,8,2,8
DATA 8,5,6,3,7,8,2,5
for y= 0 to ylen
for x=0 to xlen
read, z
map(x,y)=z
next
next