Im really new to c++

hey guys, im really new to c++ and i was trying to write a calculation program.
basically what im trying to do is make it so that when it gets too 100 of something, it resets it to 0, and add one to something else. kinda like an abacus does it. any ideas?

thanks in advance!
You will need to use some kind of loop. In each iteration of the loop you add something to the number and check whether the number is 100. If that is the case, add something to another number. Have a look here for loops: http://www.learncpp.com chapter 5
Topic archived. No new replies allowed.