Using Visual Studio, https://www.onlinegdb.com/online_c++_compiler, and http://cpp.sh/
I've gotten the same erroneous results for all of them...
User Profile
Collapse
Profile Sidebar
Collapse
rcrean13
Last Activity: Jul 9 '19, 09:02 PM
Joined: Jun 10 '19
Location:
-
Interesting...I 'm using Microsoft Visual Studio with windows 10. I'll see about testing it again.Leave a comment:
-
Sorry, I was in a rush to post it. I have updated it to be a little bit more clear I hope.
Thanks for the help but I still don't understand why I'm getting the result I am.
Any thoughts on my results?Leave a comment:
-
String will not output from catch block inside do/while loop
After a user inputs a char value for number two times, I do not receive any output when the program attempts to output the value of messageStr from within the catch block. It appears to be an empty string. Why?
From attempting to output the value of str at various locations, I think that somehow the value for str is being deleted after the first time through the loop. I don't know why this would happen. For some reason, including the...Last edited by rcrean13; Jun 11 '19, 03:57 PM.
No activity results to display
Show More
Leave a comment: