#include <iostream>
#include "Aha.h"
#include <fstream>
using namespace std;
int main(){
ofstream outee;
outee.open("/Users/slfanta/Documents/123.txt"); //用户文档路径格式,若无此文件则自动创建文件
outee<<"CPP Rocks!";
outee.close();
outee.open("/Volumes/MacFormat/123.txt"); //一般路径(MacFormat磁盘根目录的123.txt文件)
outee<<"CPP ROCKS!";
outee.close();
return 0;
}
转载于:https://blog.51cto.com/slfanta/1049491