Hi Everyone,
I am taking C++ for the second time and I am understanding it better this time around. I have an assignment that needs a switch (got that, know how to do it), I have put if/else statements inside of the cases. The thing I can't get to work is:
1. If the user enters the incorrect case (i.e. any letter besides a, b, or c) before going to the default it will jump to my next cout statement, then it prompts for the user to re-enter the correct letter, after that it ends. So I need advice on how to get it to stop asking for the hours used after the wrong input, and I need it to continue to run after the correct input is re-entered. I hope that I haven't confused anyone to bad. I have the code wrote, but am not real sure what I can or can't post or even how it is to be posted. Also we are using jGrasp with the cygwin compiler. Thanks.
lovetwins01 0 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
ndeniche 402 Posting Virtuoso Featured Poster
lovetwins01 0 Newbie Poster
lovetwins01 0 Newbie Poster
ndeniche 402 Posting Virtuoso Featured Poster
Narue 5,707 Bad Cop Team Colleague
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
ndeniche 402 Posting Virtuoso Featured Poster
ndeniche 402 Posting Virtuoso Featured Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
ndeniche 402 Posting Virtuoso Featured Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
ndeniche 402 Posting Virtuoso Featured Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Narue 5,707 Bad Cop Team Colleague
ndeniche 402 Posting Virtuoso Featured Poster
Narue 5,707 Bad Cop Team Colleague
ndeniche 402 Posting Virtuoso Featured Poster
lovetwins01 0 Newbie Poster
ndeniche 402 Posting Virtuoso Featured Poster
Narue 5,707 Bad Cop Team Colleague
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
lovetwins01 0 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
krissybhabhie 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.