+ 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.
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. :>
+ 8
<Shameless plug>
Here's my calculator code:
</Shameless plug>
https://code.sololearn.com/cRm3DeiHD24Q/?ref=app
+ 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.
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.