Try adding some semicolons after the variable declaration. And I believe it is a syntax error to declare a variable beginning with a number. That should get you going.
Personally, I would use variables that are a little less confusing and have some meaning; i.e. num2 for second number. I would also put the selection in a switch structure to make the program more fault tolerable. I had a similar project that mimics a basic calculator.
I've been studying software engineering for a year, part of my Game Software Development major, I am just now getting into the programming. Do you have any C++ reading material? I would suggest some but all of mine is created specifically for the college I attend. This is the best C++ website forum I could find and the people are helpful and firendly. Just practice, practice, practice. As an amateur, the best advice I can give is to master parameter passing and templates early on.
The best advice for any beginner is not to type a single character without knowing why it is needed. Don't just copy and paste; read and understand it.
yeah if you found an example dont copy and paste, type it manually so you will be familiar in its syntax later. then most of all take time to understand it, dont be in a hurry. i suggest reading the tutorial in this website.
Typing out all examples provided by my textbook has done wonders for me, not only for syntax reasons either. I seem to retain the information better as well as gain a deeper understanding of it versus just reading. Where I find myself really lacking is the small, what seem like minor, math computations that completely alter the output. Like the following: