Returning an Array of Pointers to Objects
Haven't seen very many clear examples around but I was wondering what would be the correct syntax to return and catch an array of pointers to objects?
For this particular program I am parsing a string into an array of object tokens, and using that array in another class. Stabbing in the dark gets me a compil error, so I was wondering if anyone has any help on the matter?
My current function prototype for returning the array of pointers is:
My return line for the function is:
ObjectName*  function( string something);
Where array is an array of pointers to objects
And the function prototype for the function which uses that array:
The gist of the compile error is I either have an extra bracket/s or are missing some, somewhere :p Any help would be much appreciated.
double function( Object* array)