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
------解决方案--------------------------------------------------------
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