📄 test3.cpp
字号:
#include<iostream.h>
#include<fstream.h>
#include<stdlib.h>
void main()
{
char ch;
ifstream ifile("abc.txt");
ofstream ofile("abc1.txt");
if(!ifile){cout<<"can't open file"<<endl;
exit(1);
}
if(!ofile){cout<<"can't open file"<<endl;
exit(1);
}
ifile.get(ch);
while (!ifile.eof())
{ if (ch>='A' && ch<='Z')
ch+='a'-'A';
ofile.put(ch);
ifile.get(ch);
}
ofile.close();
ifile.close();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -