Array coping into another array?or function returning array
My problem looks like that i have class wich have some array and i need to pass it somwhere alse. How to do it? I've tried passing pointer but then when i modify array i get i also modify one in class cause they're the same one.
So is there easy way to copy array of int to another one not using the loop for
Or how can i get thet array from class in such manner that i can edit it without editing one in array.
and now i have some function
Example();//let say it already sets values of array=1 and array=2
don't know what GetArray();//function passing array
int GetArray();//which returns array
Hmm i hope someone will understand my problem.I've made quite a mass not questin but i don't know how to state it clearly;)
int Whatdifferenc(int number)
class Example exm;
//passing array from exm to array2