C++中对文本的读写
来源:互联网 发布:今年淘宝总额 编辑:程序博客网 时间:2024/06/05 20:33
#include<iostream>
#include<string>
#include <fstream>
using namespace std;
int main()
{
string s1="test",s2="mskdkndk",s3="bdbdhbdhb";
string out=s1+"\t"+s2+"\t"+s3;
fstream fout;
fout.open("yyy",ios::out);
fout<<out<<endl;
string in;
fstream fin;
fin.open("yyy",ios::in);
fin>>in;
cout<<in<<endl;
#include<string>
#include <fstream>
using namespace std;
int main()
{
string s1="test",s2="mskdkndk",s3="bdbdhbdhb";
string out=s1+"\t"+s2+"\t"+s3;
fstream fout;
fout.open("yyy",ios::out);
fout<<out<<endl;
string in;
fstream fin;
fin.open("yyy",ios::in);
fin>>in;
cout<<in<<endl;
}
- C++中对文本的读写
- C#TXT文本的读写
- C语言中对文件的读写函数
- C对文件的读写
- Director中读写外部文本的技术
- verilog testbench中 文本读写的操作
- [新手编程训练项目]003——C语言文本合并03:fread与fwrite函数对文本文件的读写
- PyQt的QTextStream类对文本的读写简要说明
- python对文本文档的读写和删除操作-1
- python对文本文档的读写和删除操作-2
- C/C++对文件的读写
- 读写文本的类
- 文本的读写java
- 文本的读写
- 文本的读写
- PHP文本的读写
- DELPHI中对INI文件的读写
- Java 中对文件的读写操作
- null是什么类型,初始化null在内存中是如何分配内存的?
- 勿让“天地图”成绿坝第二
- Java注释Override、Deprecated、SuppressWarnings详解
- Oracle 启动的三个步骤
- java工厂模式
- C++中对文本的读写
- 解决d.setToolTipText() 显示文本不能显示图片的问题
- mono-3.0.2安装指南及一键安装脚本
- Java字符串转换为日期和时间比较大小
- MYSQL 变量区分
- UART
- 你到底是谁
- Delphi中的内存对齐 与 Packed关键字
- 主动久了 心会碎