Автор: Фитч (24.01.2008 в 09:18)
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main () {
string d;
cout<<"d.capacity() = " << d.capacity() << endl;
d="1234567890123456789";
ofstream out("test.dat");
out.write(d.c_str(),d.size());
out.close();
}
|