Total members 10249 | Gratitudes |It is currently Thu May 17, 2012 8:33 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 3 posts ] 
Author Question
 Question subject: switch keyword in c++ usage
PostPosted: Sat Apr 09, 2011 1:23 am 
Offline
Newbie
User avatar

Joined: Fri Apr 08, 2011 2:20 am
Posts: 6
Has thanked: 5 time
Have thanks: 0 time

Code:

int x
=2

switch(x)

{

case 1:print("FIRST\n"); break;
case 2:print("SECOND\n"); break;
case 3:print("THIRD\n"); break;
default:print(
"OTHER\n); break;

}


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: switch keyword in c++ usage
PostPosted: Sat Apr 09, 2011 4:23 pm 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2272
Location: Earth
Has thanked: 39 time
Have thanks: 61 time
print SECOND.

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )



For this message the author msi_333 has received gratitude : sakorian
TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: switch keyword in c++ usage
PostPosted: Sat Dec 31, 2011 4:03 am 
Thanks for the info msi_333


TOP
  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 3 posts ] 
Quick reply


  

 Similar topics
 Usage of the CSS property !important
 Usage of xmp html tag
 var tag usage
 Usage of UL tag
 tt usage example
 usage of ch attribute
 colspan attribute usage
 row-span attribute usage
 Usage of sup tag
 Usage of sub tag

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: Google [Bot] and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team