Run ID:149699

提交时间:2026-03-16 16:28:46

#include <iostream> using namespace std; int main(){ 顺序结构 分支结构 bool 真1 假0 bool a=0.1; if(5) 比较运算符 a>b < >= <= == != 逻辑运算符 a&&b a||b !a 三目运算符 a?b:c switch(表达式){ case 1;cout<<"表达式为1"; case 2;cout<<"表达式为2"; case 3;cout<<"表达式为3"; case 4;cout<<"表达式为4"; } }