C++输出内容到本地txt文件

#include <iostream>
#include <fstream>  //ofstream类的头文件

using namespace std;

ofstream mycout("C:\\Users\\zhangchi.GEOSTAR\\Desktop\\china84\\temp.txt");

int i =0;

mycout << i << endl;

mycout.close();


猜你喜欢

转载自blog.csdn.net/u011523479/article/details/80449525
今日推荐