Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Why do I get a debug error, Abort() has been called? The file Yawn 11.20 3 Joser 21.50 50 George 34.50 40 Larry 23.4 37
Why do I get a debug error, Abort() has been called?
The file
Yawn 11.20 3 Joser 21.50 50 George 34.50 40 Larry 23.4 37 Daryl 12.8 55 Rick 25.80 56 Shane 19.90 44 Carol 11.00 4 Andrea 14.5 35 Jeremy 34 Jonathon 32
Data >> name; while (Data) { Data >> payPerHour; if (!Data.eof() { Data >> tempHours; if (tempHours.find('.')) { hoursWorked = stoi(tempHours); cents = calculatePay(hoursWorked, payPerHour); Data >> name; } else { hoursWorked stoi(tempHours); cents = calculatePay(hoursWorked, rate); } coutStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started