I've been playing around with C++ for several years off and on in different areas. For the last year or so I've been using the SDL2 library and doing mostly game stuff.
That being said tonight I decided to go back to some basics to cover some of the stuff I never fully understood. And that bring me to this question.
I am writing a calculator class to do basic add, subtract, divide, multiply operations. I created a "Calculator" class and started making my first method "add" This method will take as many numbers as the user wants, then output the value of them all added up.
If I do just int add(int a, int b) then the function will only be able to input 2 numbers to add. How would I create this so that the user could input as many numbers as he wanted and have the function take all the numbers?