cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : Beginners : Class in Switch
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programm...
Articles
Lounge
Jobs

-

question  Class in Switch

walaskey (7)
Is this possible? If so how? Thanks I appreciate the help. I am trying to jump out of a Switch to a class in the mortEnt.h file.

switch(menu)
{
case 'A':
goto mortEnt::input;
break;

case 'B':
goto mortSel::input;
break;

}
| Last edited on
helios (1520)
No.
You must mean this:
1
2
case 'A':
   mortEnt::input();
|
walaskey (7)
Thank you! I feel very stupid now! I have been working this all weekend I am starting to forget what I have learned. Thanks again!
|

This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2009 - All rights reserved - v2.2
Spotted an error? contact us