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:Code:ObjectName* [] function( string something);
Where array is an array of pointers to objectsCode:return ( array);
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, somewhereCode:double function( Object* array[])Any help would be much appreciated.



LinkBack URL
About LinkBacks
Any help would be much appreciated. 



Thanks for the heads up!