Yes! Fantastic solution.
I need to do a little brushing up on the uses for buffer. Seems to do the trick here.
Thanks to everyone who gave input into this thread :)
Type: Posts; User: steveryan
Yes! Fantastic solution.
I need to do a little brushing up on the uses for buffer. Seems to do the trick here.
Thanks to everyone who gave input into this thread :)
Your solution has the same issue. If the user accidentally enters 'w', it does not tell him that he has made an error.
Not sure why my father wanted to use an array.
I like your other suggestions. One problem though...
Lets say the user wants to quit. He goes to enter 'q', but accidentally enters 'w'.
The...
Hello,
My father and I have made this calculator. It works, but I want to include data validation so that if the user does not enter 'y' to continue or 'q' to quit, it will tell the user that he...
Thank you very much for the explanation and your help. It makes much more sense now.
Gotcha. That looks much better than the way I had it.
Also, when you say "recursively" does that refer to how the main was being called from within the main? If it was working, why is it a...
Thank you all again very much.
I went to bed last night without having this resolved. Will sleep well tonight!
:)
I was able to make these changes and get the warning to go away. I had to put the char* in 3 places (function prototype definition, the variable declaration, and where the function is executed).
I...
Thank you all very much for your help!!!
I do keep getting this "warning: return makes integer from pointer without a cast"
I suspect this is because I am returning a string to an int.
...
I should have seen that the & was missing.
Now there is another problem.
When I enter "0" to quit, it continues rather than quitting.
Any idea as to why it will not quit?
Hello,
My father and I are learning C with the intention of eventually learning C++.
This program worked fine until I tried to add a "Continue or Quit" option. I've spent at least 6 hours...