switch (變數名稱或運算式) { case 符合數字或字元: 陳述句一; break; case 符合 ... break; case 8: cout << "得B" << endl; break; case 7: cout << "得C" << endl; ...
確定! 回上一頁