【单选题】运行下面这段代码的结果为 int day = 3; switch (day) { case 1: case 3: case 5: System.out.println ("学钢琴!"); break; case 2: System.out.println ("学英语!"); default: System.out.println ("去必胜客吃饭!"); }
【简答题】代码功能:判断当前日期是星期几 switch (new Date().getDay()) { case 0: day = "星期天"; _______; case 1: day = "星期一"; break; case 2: day = "星期二"; break; case 3: day = "星期三"; break; case 4: day = "星期四"; break; case 5: day...
【简答题】switch(day) { case 1: cout < case 2: cout < case 3: cout < case 4: cout < case 5: cout < case 6: cout < case 7: cout < default: cout << " dataerror." ; } 当day=8时,输出结果是什么?A. Monday B. Thursday C. Sund...