分类: C/C++
2009-07-28 14:26:38
#include
#include
using namespace std;
int main(int argc, char **argv[])
{
fstream inout;
string tt;
inout.open("11", fstream::in);
getline(inout, tt, '\n');
cout << tt << "\n";
inout.close();
inout.clear();
inout.open("22", fstream::out);
inout << " i am toy\n";
}
make略