Hi
i'm relatively new to c++ altough i had some experince writing with other DOS enbled consoles!
I would like to have menu and the user selects items by pressing the numbers 1 to 6! Now, if a user inputs a char the whole program goes haywire!
Is there a way to make to user input only 1 to 6 or else how can i catch other char and output an error!
Thanks Nick
i'm relatively new to c++ altough i had some experince writing with other DOS enbled consoles!
I would like to have menu and the user selects items by pressing the numbers 1 to 6! Now, if a user inputs a char the whole program goes haywire!
Is there a way to make to user input only 1 to 6 or else how can i catch other char and output an error!
Thanks Nick