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"<
}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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started