Dear All,
I would like to write a small function which will return a dynamic array.
The function is a simple function like this:
but, it will return a dynamic array values like this:
peter 5 60.00
mary 6 70.20
...
How I do this in c++!? use function pointer ?? or other method !?
Moreover, how can I get the return values from the main() function!?
Since I am a newbie in C++, please provide some sample code. thanks a lot.
I would like to write a small function which will return a dynamic array.
The function is a simple function like this:
Code:
function_a(int a, int b)
{
}
peter 5 60.00
mary 6 70.20
...
How I do this in c++!? use function pointer ?? or other method !?
Moreover, how can I get the return values from the main() function!?
Since I am a newbie in C++, please provide some sample code. thanks a lot.
Comment