⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test3.cpp

📁 这我们老师对是面向对象程序设计(清华大学出版社)一书制作的PPT
💻 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 + -