// the traditional way (C and C++)
void func1(int *arr, int size)
// passing by reference (C++ only)
void func2(int (&arr))
Well, for example, the user inputs a series of numbers and then it gets maniuplated in the class. How would I pass someArray to the class?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//Add the elements of the array, for example
//Then how would I pass the array back to the main function??
cout << "Enter and array";
for (int i = 0; i < 3; i++)
cin >> someArray[i]
//How would I pass someArray to the class to maipulate it?