C++文件的写入和读取

//文件保存自用 // Filestream.cpp : 定义控制台应用程序的入口点。 #include "stdafx.h" #include <iostream> #include <fstream> using namespace std; int main() { //打开文件 写 ofstream ofs("a.txt", ios::out); ofs << "this is out!"
相关文章
相关标签/搜索