c++ switch
switch(expression) {
case x:
// code block
break;
case y:
// code block
break;
default:
// code block
}
c++ switch
switch(expression) {
case x:
// code block
break;
case y:
// code block
break;
default:
// code block
}
c++ switch case
switch(expr) {
case 1:
// do something
break;
case 2:
// do something
break;
default:
// do something
}
switch case sinax c++
switch (<espressione>)
{
case <valore costante 1>:
// istruzioni
break;
case <valore costante 2>:
// istruzioni
break;
...
case <valore costante N>:
// istruzioni
break;
default:
// istruzioni
break;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us