Question: 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

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!