【发布时间】:2009-05-18 09:42:59
【问题描述】:
这是正确的,它可以正常工作
string str("in.dat");
ifstream fin(str.c_str(), ios::binary | ios::ate );
.
.
.
//Do I need to clear the string before assigning new name???
str = "out.dat";
ofstream fout(str.c_str(), ios::binary); //seems to work
问候
【问题讨论】: