Click here to Skip to main content
15,905,683 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
how to use group switching in c++.
i want use group switch statement. actually i am working on crystalfontz lcd display.i want to make menu based program,

so i want to use this.
Posted
Comments
CPallini 18-Aug-11 3:08am    
What is 'group switching'?

group switch statement
Means are you talking about nested switch statements? Then look into this,

Nested switch statements

MSDN C++ Switch statements
 
Share this answer
 
your question is not clear:
what you mean by group switching!

this is one form of using switch!

CString func(int case)
{
CString a = "";

switch(case)
{
case 1:
case 2:
a = "one and two";
break;
case 3:
case 4:
a = "threre and four"
break:
}
return a;
}
 
Share this answer
 
Comments
Richard MacCutchan 22-Aug-11 8:34am    
If you must post code snippets then please use code blocks so they are readable.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900