我需要创建一个在当前文件夹中写入文本文件的程序,文本文件总是包含相同的信息,例如:This is an example of how the text file may lookand here所以我在想做这样的事:#include <fstream>
ofstream myfile("myfile.txt");
myfile <
我正在尝试新的东西(在Inproc类上),特别是使用std::unique_ptr和std::move,我想知道我是否做得对。代码编译,给了我希望。不过,你觉得呢?class Fan { static Fan * create(Fan *peer = NULL) { return new Fan(peer); }private: Fan *