From: nguyen2 AT tidalwave DOT net_REMOVE (Linh Nguyen) Newsgroups: comp.os.msdos.djgpp,alt.comp.lang.learn.c-c++ Subject: Beginner, switch statement in DJGPP Date: Tue, 10 Feb 1998 20:34:28 GMT Message-ID: <34e0b800.2267079@newsdesk.tidalwave.net> NNTP-Posting-Host: 208.220.25.126 Lines: 18 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi. I use Borland C++ 5 at school, and coded the switch statement as follows... switch(Num) { case 1, 10, 6: cout << "Test"; break; ....... and so on and so forth } but in DJGPP, it won't let me do that, it only lets me have one possibility for each case statement, so it would be like this.. case 1: ... case 10: ... case 6: ... Is there any way around this? Thanks for any help!