Hi, I need to make this loop but I'm having trouble. if i type 999 it will quit, but if i don't type 999 it will infinite loop. Can anyone give me some insight? Would be grateful.
You've told it to loop forever so long as you don't enter 999. Isn't that what you want? To only quit when something other than 999 is entered? Or I am missing something here?
i want it to ask the name and then ask the other questions then after input everything it will start back from the beginning again. then if i type 999 anytime it will stop
line 11: Why is cName a double? If you enter something other than a number, the cin operation will fail. cName will not be changed and the comparison to 999 will fail.