If the program is being run the "cin>>answerBoss;" runs just fine but right after that input the program skips the next input that reads "cin>>overTime;" I can't figure out what is causing this to happen.
Lp_baez
0
Light Poster
Recommended Answers
Jump to Postcin>>overTime; won't get executed if you enter bad values for cin>>answerBoss;
In your code, the input data is expected to be an integer, if you supply anything else, it won't run the 2nd cin.
Jump to PostYou need to change your int asnwerboss to char[20] answerboss or string answerboss.
All 7 Replies
Lp_baez
0
Light Poster
TheApex
5
Light Poster
Vincentas
6
Junior Poster in Training
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Lp_baez
0
Light Poster
Lp_baez
0
Light Poster
Nutster
58
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.