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

#include
#include  //ofstream类的头文件

using namespace std;

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

int i =0;

mycout << i << endl;

mycout.close();


你可能感兴趣的:(C++输出内容到本地txt文件)