1:代码如下:

// 3.10.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"
#include <iostream>
#include <iomanip>
using namespace std;
void main()
{
    cout<<"输入一个A-D范围内的大写字母作为成绩评价"<<endl;
    char iInput;
    cin >> iInput;
    switch (iInput)
    {
    case 'A':
    cout << "very good" << endl;
    break;
    case 'B':
    cout << "good" << endl;
    break;
    case 'C':
    cout << "normal" << endl;
    break;
    case 'D':
    cout << "failure" << endl;
    break;
    default:
        cout << "input error" << endl;
    }
}
View Code

相关文章:

  • 2021-05-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
猜你喜欢
  • 2022-01-02
  • 2021-07-19
  • 2022-12-23
  • 2021-12-04
  • 2021-05-28
相关资源
相似解决方案