怎么用c++建立一个文件夹并创建一个记事本写入hello

2025-02-25 12:16:41
推荐回答(1个)
回答1:

创建文件夹不知道,记事本好说
#include
#include
int main(){
ofstream out("abc.txt");
out<<"hello";
}生成的abc.txt在你的工程里了