Jan 30, 2015 at 12:36am
What are you doing wrong?
1 2
|
cout << MathObject.add(*number1, *number2) <<endl;
delete *number1, *number2;
|
Where is *number1 and *number2 in the main scope?
EDIT:
Don't bother with templates until you actually understand C++.
Last edited on Jan 30, 2015 at 12:37am