I don't know why my program is saying I inputed the value 1 when I didn't
i have a program that takes in user inputs and whenever i select option 3, its supposed to open a sub menu but instead this shows up saying i entered in the number 1. I'm not sure why. I also used cin.ignore to clear my input buffer so im not sure why im still running into this problem.


1 Reply
try using break points to help find the error.