正在加载图片...
54 switch语旬 例 switch( score) case5: printf((“ Very good!”); case printi(“Good!”); case 3: printf("Pass!); case 2: printf(Fail!); default: printf(data error!) 运行结果: score为5时,输出: Very good! Good! Pass! Fail! data error21 例 switch(score) { case 5: printf(“Very good!”); case 4: printf(“Good!”); case 3: printf(“Pass!”); case 2: printf(“Fail!”); default : printf(“data error!”); } 运行结果:score为5时,输出: Very good! Good! Pass! Fail! data error! 5.4 switch语句
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有