标签:use bre evel can case ase TE efault equal
switch (level)
{
case ‘A‘:
salary2 = salary1 + 500;
break;
case ‘B‘:
salary2 = salary1 + 300;
break;
case ‘C‘:
salary2 = salary1;
break;
case ‘D‘:
salary2 = salary1 - 200;
break;
default:
salary2 = salary1;
break;
}
NOTE:can only use in equal-value
标签:use bre evel can case ase TE efault equal
原文地址:https://www.cnblogs.com/lsjava/p/9245787.html