#includeusing namespace std; int main() { //switch语句 //电影打分 cout << "请打分" << endl; int score = 0; cin >> score; cout << "打的分数为" << score << endl; switch (score) { case 10: cout << "您认为是经典电影" << endl; break;//如不加break会一直向下执行 case 9: cout << "您认为是经典电影" << endl; break; default: cout << "电影还行" << endl; break; } system("pause"); return 0; }



