#include#include using namespace std;void process(string filename){ fstream file(filename); file << "Hallo world!" << endl; file.close();}int main(){#include"haha.txt" string s = "haha.txt"; process(s); return 0;}
本文共 304 字,大约阅读时间需要 1 分钟。
#include#include using namespace std;void process(string filename){ fstream file(filename); file << "Hallo world!" << endl; file.close();}int main(){#include"haha.txt" string s = "haha.txt"; process(s); return 0;}
转载于:https://www.cnblogs.com/KennyRom/p/5852408.html