主页
C++
C++ Switch 语句
demo_switch_default
运行 ❯
×
更改方向
保存代码
更改主题
#include
using namespace std; int main() { int day = 4; switch (day) { case 6: cout << "Today is Saturday"; break; case 7: cout << "Today is Sunday"; break; default: cout << "Looking forward to the Weekend"; } return 0; }
Looking forward to the Weekend