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!"
相關文章
相關標籤/搜索