December 10th, 2008, 02:22 PM
Returning contents of int array from function
Grr, cant seem to get this to work..
I have a class that has
The header has
The constructor has
puzzle = new int;
I want to have a member that returns the contents of the 81 element array and not a pointer to it.. Basically after the class is created and some other stuff happends, the class is deleted.. Before the class is deleted I need to get the contents of the array out of the class and "copy" it to a local variable so I will have it after the class is deleted..
How can I do this?
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.