| | |
Cannot get switch to execute
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
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:
A switch statement should be in the following form:
C++ Syntax (Toggle Plain Text)
switch (variable) { case expression1: { statement1; break; } case expression2: { statement2; break; } ... default: { defaultstatement; } }
Last edited by cscgal; Feb 26th, 2004 at 1:43 pm.
Dani the Computer Science Gal 
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds

Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
![]() |
Similar Threads
- protected mode switch (Assembly)
- problem trying to use alpha for switch statement (C++)
- Execute a function every five miliseconds (C)
- Read string and use in switch statement (C++)
- problem in running perl script (Perl)
- About Comm Port (Visual Basic 4 / 5 / 6)
- Problems with switch statement (C++)
- iis 5 through linksys wireless 4prt switch firewal (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
- Previous Thread: Creating and destroying objects
- Next Thread: while loop in c++ help needed
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamiccharacterarray email encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library lines list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






