主题:求助 fstream问题
怎样用fstream从终端读取文件地址?
#include<fstream>
.
.
.
声明变量
.
.
.
ifstream fin;
ofstream fout;
.
.
.
fin.open(变量名.c_str());//可以这样用吗?
.
.
.
fout.close();
						
					#include<fstream>
.
.
.
声明变量
.
.
.
ifstream fin;
ofstream fout;
.
.
.
fin.open(变量名.c_str());//可以这样用吗?
.
.
.
fout.close();

 您所在位置:
 您所在位置: