Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Have a c++ code with two structs, one for a coffee shop and another for customer information. So far it complies fine but I'm getting

Have a c++ code with two structs, one for a coffee shop and another for customer information. So far it complies fine but I'm getting stuck on this section do { //code for main menu if(input==y) { //code to input information into structs . . . cout<<"Want to go back to main menu?"<< cin>>input; }}while(if the user wants to go back to main menu) if(input == 'N') //if user had selected No in main menu it does this code instead { cout<<"Enter order number"<>input;

}while(user would select yes) //it should loop back to the beginning of the code return 0; } I need it to return back to the main menu I coded above it. But all its doing is just asking for the order number, instead of going further back. Not sure what I'm doing wrong

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

Students also viewed these Databases questions

Question

Provide the I.U.P.A.C. name of the compound

Answered: 1 week ago

Question

600 lb 20 0.5 ft 30 30 5 ft

Answered: 1 week ago

Question

Describe how to train managers to coach employees. page 404

Answered: 1 week ago

Question

Discuss the steps in the development planning process. page 381

Answered: 1 week ago