View Full Version : C++ arrays
VoidWalker
03-01-2008, 08:36 AM
Is it possible to add data in rows and columns in a 3 by 3 array variable? I'm stuck in this. Don't know how to. Do I have to use the looping statements here?:confused:
MindTheGap
03-01-2008, 11:17 AM
You can set the value manually like this:
ArrayName[3][5] = value;
3 and 5 are just arbitrary values, and value can be anything you want.
You can also loop through just a specific row or column or x by y rectangle, or cube or whatever shape in whatever dimension. (using for loops, by setting your intial value and such to different things other than 0).
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.