C++ IO流:iostream、fstream、strstream

#include 
#include 
#include 
using namespace std;

int main()
{
	int x,y,z;

	//iostream
	/*
	cin>>x>>y>>z;
	cout<<"x:"<>x>>y>>z;

	indata.close();


	ofstream outdata("out.data");
	if(!outdata)
	{
		cout<<"fail to open out.data"<>x>>y>>z;

	ostrstream outdata(dstbuf, 20, ios::out);
	outdata<

你可能感兴趣的:(C/C++/STL,IO/文件读写)