You probably don't really need to use pointers.
Code:MyClass test[10]; // Declare 10 MyClass objects, each constructed with the default constructor. test[0].add_info("foo"); test[1].add_info("bar");
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 11 of 11
Thread: Storing Objects in an ArrayThreaded View
|
Click Here to Expand Forum to Full Width |