Question: Programming Language: C++ Hello, I have a certain problem where: I have a do while command with the following (extrapolated): do { userinput if (userinput

Programming Language: C++

Hello, I have a certain problem where:

I have a do while command with the following (extrapolated):

do

{

userinput

if (userinput is == "%")

{

ExitiProgram = 1

}

else

{

*do stuff*

}

}

while (ExitProgram != 1)

My problem is, when I press % and hit enter to exit the program, the program doesn't exit, it just keeps looping on and on. What is the problem with this?

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!