标签:blog io os ar sp 文件 on 2014 log
#include <iostream>
#include <sstream>
#include <fstream>>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
ofstream myfile;
myfile.open("example.txt");
myfile <<"write test";
myfile.close();
return 0;
}标签:blog io os ar sp 文件 on 2014 log
原文地址:http://blog.csdn.net/drivermonkey/article/details/40688219