I am doing a program in C++ with do while loops and switch case. After the user enters the info required, the program automatically does the while part. It is not ejecuting the switch case (most important part in my program). What can I do?

Can you show us your code so that we can see if there are any errors?
A switch statement should be in the following form:

switch (variable)
{
	 case expression1: { statement1; break; }
	 case expression2: { statement2; break; }
	 ...
	 default: { defaultstatement; }
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.