Hello do you know why when i enter to ‘makeI’ a letter, it loops and skip line ‘cin >> makeI’ ?
while (endBo == true){
cin >> makeI;
switch (makeI)
{
case 1:showBalance();cin >> makeI;break;
case 2:takeMoney();break;
case 3:putMoney();break;
case 4:endBo=false;break;
default: cout << "Please enter what you want to do (1,2,3,4): ";makeI=0;break;
}
}
i cant explain what i did already. Sorry.
New contributor
AquaFox is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2