爱问知识人 爱问教育 医院库

用C语言编一个将小写字母转化为大写字母的程序??

首页

用C语言编一个将小写字母转化为大写字母的程序??


        

提交回答

全部答案

    2018-03-30 12:36:57
  •   #include
    #include
    #include
    using namespace std;
    int main()
    {
        char filename[50];
        char output_file_name[50];
        cout>filename;
        ifstream in(filename);
        if(in。
      fail()) { exit(1); } cout>output_file_name; ofstream out(output_file_name); string s,line; while(getline(in,line)) { s+=line+"\n"; } for(int i=0; i='a' && s[i]<='z') { s[i]=s[i]-32; } } out<  

    李***

    2018-03-30 12:36:57

类似问题

换一换
  • 软件 相关知识

  • 电脑网络技术
  • 电脑网络

相关推荐

正在加载...
最新问答 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):