I started today learning C++ for the first time. I've been following a video series for beginners which has helped me a lot. But ever since it's gotten into classes and objects and stuff I've been really struggling. I finally thought I understood it so tried something on my own. I was really sure I got it right, but there is 3 errors and I can't figure out why.
Another question, How can I make it so the user can input the numbers instead of me having to set certain numbers in the code to add together? I can do it if its all in one function, but I don't know how to do it this way.
It will repeat until std::cin is placed in an error state - this is usually for failed input, so yes - if you input something that isn't a number or if the input ends (e.g. Ctrl+Z in a console).