#include <fstream.h>
void main() // 程序从这里开始运行
{
ofstream SaveFile(“cpp-home.txt”);
SaveFile << “Hello World, from www.cpp-home.com and Loobian!”;
SaveFile.close();
}
C++文件输入输出简明说明
最新推荐文章于 2024-11-13 19:36:04 发布
#include <fstream.h>
void main() // 程序从这里开始运行
{
ofstream SaveFile(“cpp-home.txt”);
SaveFile << “Hello World, from www.cpp-home.com and Loobian!”;
SaveFile.close();
}