cout<<"You have $"<<weekOvertime<<" in overtime pay. So in total, you've made $"<<overallWeek<<" . Good work!"<<endl;
}
else if
{
cout<<"That's ok. Good job on making $"<<weekPay<<endl;
}
system ("pause");
return 0;
}
I'm not sure why my loop isn't running right. I've also used if/if and if/else . Nothing worked
on 1st hand, i noticed the following:
1. You are declaring answer as bool and then you are comparing value of answer with "yes" that is a string.
2. change if (answer = ...) to if (answer == ...). = is a statement, == is the comparison operator.
3. your else if does not have any condition..??