-
December 10th, 2008, 03:22 PM
#1
Returning contents of int array from function
Grr, cant seem to get this to work..
I have a class that has
The header has
int* puzzle;
The constructor has
puzzle = new int[81];
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|