总览 1.for循环 2.switch-case语句 一、for循环 1.代码示例 for (int i = 0; i < 10 ; i++) { cout << "输出数字:" << i << endl; } return 0; 二、switch-case 1.代码示例