Hi all,
Just a day since I started to learn C++ myself. I have no previous coding experience and thus, and struggling alot. I have tried to create a simple calculator and expand on it.
At the moment, I would love to create another function to allow users to decide should they wish to do another operation or quit. I have succeeded in having lengthy code with the decision made at the end of the operation. But would wish (as mentioned above) want to have new function to tidy up slightly.
Seems that I can't compile the following code. Any help would be lovely :)
1) Your code is technically invalid, as standard prohibits you wrom calling main()
2) Move your code relating to the selection of operations in some function, say, menu().
Add function asking a question and returning a boolean value, call it ask: