Scripting, Code & Interaction: Difference between revisions

Line 341: Line 341:
''Okay, did you just say something about an array of pointers?''
''Okay, did you just say something about an array of pointers?''


Well, I'm not going to go into what an array is (look it up in the manual), but yes, you can create an array of pointers.  You do this the same way you would create any other array.  So, if you wanted to create your own array of pointers to the first five GUI objects, you could do something like this:
Well, I'm not going to go into what an array is ([http://www.bigbluecup.com/manual/Arrays.htm look it up] in [http://www.bigbluecup.com/manual/index.htm the manual]), but yes, you can create an array of pointers.  You do this the same way you would create any other array.  So, if you wanted to create your own array of pointers to the first five GUI objects, you could do something like this:


   GUI* MyGUIArray[5];
   GUI* MyGUIArray[5];
Anonymous user