文明大学生

数学公式

2021年1月7日

ifstream ofstream c++中读写文件

摘要: 创建文件并打开 ofstream out("sf1.txt"); 往文件中写 1、一个单词一个单词写 cin>>s,out<<s; 2、一行一行写 cin.getline(s,num); out<<<s; 打开文件往外写 ifstream in("sf1.txt"); 1、一个单词一个单词往外写 i 阅读全文

posted @ 2021-01-07 10:18 文明大学生 阅读(123) 评论(0) 推荐(0) 编辑

导航