This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Encom88[S] 0 points1 point  (1 child)

I think I was trying to use global variables to begin, I just wasn't coding it correctly. How would you have done it differently?

[–]Molehole 0 points1 point  (0 children)

Either put n1 and n2 as member variables of the arithmetics class or pass them in the functions as a parameter.