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.
Jump to Post
cin>>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.
All 7 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.