小写转大写

发布时间 2023-06-24 08:56:39作者: 爱吃泡面的皮卡
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
    char n;
    char score;
    cin>>n;
    switch(n){
        case 'a':score=n-32;break;
        case 'b':score=n-32;break;
        case 'c':score=n-32;break;
        case 'd':score=n-32;break;
        case 'e':score=n-32;break;
        case 'i':break;
        default:score=32;break;
}
    cout<<score<<endl;
    system("pause");
    return 0;
}