我习惯用以下指令打开一个文件:
ifstream file ("somefile.txt"); //that means that I know the name of my file
现在我有一个大目录,里面有很多文件,我的程序应该一一打开所有这些文件。
我怎样才能做到这一点?
c++ file
c++ ×1
file ×1