Quantcast
Channel: Ted Larsson
Viewing all articles
Browse latest Browse all 6

need help with c++ calculator

$
0
0

So I am taking a c++ course and I am on my third assignment. The first was a simple calculator, get 2 numbers and then Display the results for added, subtracted, divided and multiplied. The second one was a simple game that measured the time it took to press a key after the game said go. Now they've turned it up several notches and I'm doing a full blown calculator without the GUI, and I'm stuck. I don't even know where to start. The user must be able to add, subtract, multiply and divide as many times as he/she/it wants then get the result of be able to clear and start over. Now as far as pseudo code goes I've gotten so far as : Get user input number 1, operator, number 2, sum, put sum into vector, show sum and get next input, sum, put into vector loop this until user either decides to clear or wants the sum. An I totally wrong here? Now I don't want all the code written for me, I mean I want to learn this I just want a nudge in the right way of thinking 😊


Viewing all articles
Browse latest Browse all 6

Trending Articles