Question: i want this function to not except characters but each time i enter it, it gives me a run time erro how can i do

i want this function to not except characters but each time i enter it, it gives me a run time erro
how can i do it such that the function only ecepts yes no 1 and 0, but not any sort of character
please help me ( using c++)
i want this function to not except characters but each time i

string answery coutes" In nwould You Like To perform another Procedure? ? cinss answers if(Canswer"yes")|(answer"Yes")(answen"YES") return true; 3. coutes "It It NOTE I"Write Either [Yes P] To continue oR [No e] To Stopl" return confirm() P

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!