Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ awitch statements

var = 1

switch (var):

  case 1:
	break; // Code that is executed if var is 1

  case 2:
	break; // Code that is executed if var is 2

  default:
	break; // Code that is executed if no cases match
 
PREVIOUS NEXT
Tagged: #awitch #statements
ADD COMMENT
Topic
Name
8+1 =