{ofstream outtemp1("temp1.txt",ios::out);ofstream outData("t

问题描述:

{
ofstream outtemp1("temp1.txt",ios::out);
ofstream outData("temp.txt",ios::out);
ifstream indata("Personal system of accounting.txt",ios::in);
if outData || indata)
{
cout
1个回答 分类:综合 2014-10-26

问题解答:

我来补答
ofstream outtemp1("temp1.txt",ios::out);//定义一个输出流对象outtemp1,就是可以向temp1.txt这个文件写数据
ofstream outData("temp.txt",ios::out);//定义一个输出流对象outData,就是可以向temp.txt这个文件写数据
ifstream indata("Personal system of accounting.txt",ios::in);//定义一个输入流对象 indata,可以从
Personal system of accounting.txt这个文件中取出数据
if (!outData || !indata) //通过判断文件流对象的返回值判断文件是否存在.这里少了一个"||!outtemp1"
{
cout
 
 
展开全文阅读
剩余:2000
下一页:奇偶性的应用。