Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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++)
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions