B
bahoo
Hi,
I have an array that I need to define inside a function, and later use
it in another function.
main()
{
Object* arr = NULL;
func1( arr );
func2 (arr );
}
where
void func1(Object* arr)
{
arr = new ...
}
But this doesn't seem to work. Can anyone tell me what's wrong with
it?
Thanks
bahoo
I have an array that I need to define inside a function, and later use
it in another function.
main()
{
Object* arr = NULL;
func1( arr );
func2 (arr );
}
where
void func1(Object* arr)
{
arr = new ...
}
But this doesn't seem to work. Can anyone tell me what's wrong with
it?
Thanks
bahoo