I try to make a dummy of an instance of a self made class Calender.
Afterwards I make a change into the instance of the class Calender.Code:
Dummy = Calender.getCalender();
The randomMove() function updates the Calender with an algorithm.Code:
Afterwards I want to compare the changes made by the RandomMove() function. So I compare it with Dummy. Problem: the Dummy variable is equal to Calender because Calender.RandomMove() also updates the Dummy. Obviously something due to a pass by ref. But how can Solve this problem. I also tried a copy constructor.
Thanks in advance