Hi everyone. I have this class...
and I need the constructor of this ApplicationType to set up all my buttons. The buttons' constructors look like this:
(So normally I would make a button by saying "vUIButton ExitButton( "Exit", NULL );".)
vUIButton( char* Text, RectangleType* Area )
How do I do this with an array? I want the buttons to be like this:
1. "New", NULL
2. "Load", NULL
3. "Options", NULL
4. "Credits", NULL
5. "Exit", NULL
I know that i could do it like this...
...but this won't work in the constructor.
vUIButton Buttons =
vUIButton( "New", NULL ),
vUIButton( "Load", NULL ),
vUIButton( "Options", NULL ),
vUIButton( "Credits", NULL ),
vUIButton( "Exit", NULL )
How do I use an array's objects' constructors in the constructor of the class that contains them? (Wow, that was a weird sentence...)
Thank you very much for your time. It is greatly appreciated!