首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

a function to get the full path names of a list of files,该怎么处理

2013-02-19 
a function to get the full path names of a list of filesa function to get the full path names of a

a function to get the full path names of a list of files
a function to get the full path names of a list of files
First ,I am not a C++ programmer but a python programmer .I am only a little familiar with C++ ,so I cannot implement this function myself ,my use of this function is to wrap it into  Python to improve my program’s working efficiency .

I have already know a list of files in a specified directory or its subdirectories , I need a function to get the full path names of this list of files ,now I am going to give out the prototype of this function , I wonder if you can help me to implement this function .

function name : get FullPathNames
parameter : the path to the parent directory that all of that list of files are contained in, a list of file names the I need to get their full path names back

return value : a list of full path names 

thanks in advance !
I use it on WinXP 

[解决办法]

引用:
引用:sorry, 

C/C++ code
?

123456789101112131415161718192021222324252627

#include <direct.h> #include <string> #include <vector> using std::string; using std……

std::vector<std::string> fileList;
GetFiles("D:\", fileList);
//fileList contains all files' fullpath in D:\
//if you don't know what is vector, google it

热点排行