I'm still a bit new to c++ programming and though I've gotten a handle on the basic input/output functions and methods I'm still looking to learn about how to make a sort of random or multi-choice output generator to a simple calculator program I am trying to write. I will paste the program thus far in, I am just hoping someone might be able to give me advice or reference to how I might go about outputting a different string of feedback every time though. I don't just want to print the result, of the calculations, I want to print different messages for each time of either wrong input or successful calculation. I eventually want to turn this program into one that teaches step by step the core functions of mathematical calculations to any user...
Thank you in advance.
thank you 007. That was actually really helpful, and all of the code seems to be looking great. However I keep getting this error message now, that is related to trying to declare " ans ",
if(ans==real_ans) --- "Identifier whose declaration cannot be found."
however, everything I've tried doesn't seem to be working. I'm wondering if there is something else I need to do in order to make ans work properly so that it can test properly for the string pass.
I was wondering if you might know how to go about properly declaring ans.