switch case break
来源:互联网 发布:linux安装教程 编辑:程序博客网 时间:2024/04/28 05:12
/* Note:Your choice is C IDE */#include "stdio.h"main(){ int i; scanf("%d",&i); if(i>=1 && i<=12) switch(i) { case 1:printf("January\n ");break; case 2:printf("February\n ");break; case 3:printf("March\n ");break; case 4:printf("April\n ");break; case 5:printf("may\n ");break; case 6:printf("june\n ");break; case 7:printf("july\n ");break; case 8:printf("August\n ");break; case 9:printf("September\n ");break; case 10:printf("October\n ");break; case 11:printf("November\n ");break; case 12:printf("December\n ");break; } else printf("not valid month number");}
0 0
- switch case break
- switch case break
- switch-case retrun break
- switch case break
- switch-case-break语句
- switch-case-break;
- switch case 中的break
- switch case,若无break
- JavaScript -- switch,case,break,default
- 关于switch case break建议
- switch case break default 判断语句
- java中switch case和break使用
- switch case without break in C language
- switch—case break 语句总结
- 小程序之switch...case...break
- 为什么switch case语句需要加入break
- switch(A){case a: break;........default :}用法
- switch下case、break成对使用小技巧
- 经典算法--堆排
- JSP隐含对象收藏
- C++堆内存和栈内存详解
- poj1817
- 2011斯坦福大学iOS应用开发教程学习笔记(第三课)Objective-C
- switch case break
- Java类加载器
- 【爸爸陪伴孩子是个技术活,永远不要给自己找借口】
- UVA 1401 Remember the Word(DP+字典树Trie)
- MYSQL出错信息表
- 史上最全的互联网思维精髓总结
- 设计模式学习笔记--桥梁(Bridge)模式
- ubuntu12.04安装opencv2.4.8,并运行简单例子
- 如何利用Tim Cootes的am_tools工具标记图像