+ 3

C++ Calculator?

How hard/easy is it to make a c++ calculator? It can't be that hard, right? I mean, we kinda got all the information for it in Basic Concepts, but code can be totally different.

7th Apr 2017, 3:29 PM
Brady Cook
Brady Cook - avatar
4 Answers
+ 11
Yeah, there are like, tons of C++ calculators in Code Playground. Try searching for them, I'm sure the examples will benefit you. :>
7th Apr 2017, 3:36 PM
Hatsy Rei
Hatsy Rei - avatar
+ 8
<Shameless plug> Here's my calculator code: </Shameless plug> https://code.sololearn.com/cRm3DeiHD24Q/?ref=app
7th Apr 2017, 3:55 PM
Karl T.
Karl T. - avatar
+ 3
It depends on what kind you want to make. Accepting 2 numbers and performing an operation on them is very easy. Performing a whole sequence of operations on multiple numbers will require way more lines of code. As Rei said, searching on the code sections in the app will get you a lot of examples.
7th Apr 2017, 3:40 PM
Pixie
Pixie - avatar
0
A c++ calculator code is one of the easiest programs. However, it is correct to say code can be totally different. Remember code is decided by the programmer. Code can only be the same if programmers have been what to use, e.g Using a switch statement or using nested if statements.
8th Apr 2017, 4:23 AM
Resistance Moyo
Resistance Moyo - avatar