I have a function with the following declaration:
void cleanValid(int valid[][4], int &size, int index);
In implementation of this function I need to set another counter equal to the integer size passed by reference. I tried doing something like:
int count;
count = size;
If I'm not mistaken, when I change the value of count it will change the value of size as well. I can't have this happen though. How would I go about copying the value of size into count and keeping them independent?