hey guys, this code is copied almost exactly from Bjarnes Stroustrups book and i cannot find the bug thats making me have to tel it to quit twice for some reason
i checked it like 3 times and this is super trivial stuff so you can imagine how irritating it is that i cant get it to work
EDIT: Please dont mind system i know you guys hate it, i just need a quick pause - i have tried it with the default case instead of q but its the same issue. i can even scan the code from the book if you guys desire
Try removing std::cin>>op (sic) from the condition and use std::cin.good( ) in its place. Then, place std::cin>>op (sic) above std::cin>>rval (sic). Like this: