View Single Post
Old May 24th, 2006, 12:12 AM   #7
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 904
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
SmallBox smBox[][] = new SmallBox[xMax][yMax]; will create an array of null values of the specified dimensons. You have to initialize each index individually, eg, smBox[0][0] = new SmallBox();.
titaniumdecoy is offline   Reply With Quote