摘要: Ccodeblocks+gcc#include <stdio.h>#include <stdlib.h>int main(){ int nWeek = 1; switch (nWeek) { case 1: printf("周一 "); case 2: printf("周二 "); default: printf("其它 "); break; } return 0;} 输出结果为:周一 周二 其它当将nWeek = 2输... 阅读全文
posted @ 2011-05-13 16:01 JarvisChu 阅读(800) 评论(0) 推荐(0) 编辑