#include
#include "fstream"
#include
#include
#include
#include
using namespace std;
string key="aabbccdd1122334455absacsafasfasvsapocasppf123oawirpw";
int lenOfAllKey=256;
int main(){
DIR * dir;
struct dirent * ptr;
char file_list[100][40];
int i=0;
char srcFile1[1][100];
printf("111\n");
string rootdirPath = "/home/jyh/code/rc4加密/password/";
string
string x,dirPath;
dir = opendir((char *)rootdirPath.c_str()); //打开一个目录
while((ptr = readdir(dir)) != NULL) //循环读取目录数据
{
printf("d_name : %s\n", ptr->d_name); //输出文件名
x=ptr->d_name;
dirPath = rootdirPath + x;
//printf("d_name : %s\n", dirPath.c_str()); //输出文件绝对路径
// x = dirPath.c_str();
strcpy(srcFile1[i],dirPath.c_str()); //存储到数组
if ( ++i>=100 ) break;
}
printf("111\n");
closedir(dir);//关闭目录指针
}
相关文章:
-
2021-11-24
-
2022-01-27
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-12-23
猜你喜欢
-
2022-01-22
-
2021-06-11
-
2021-09-05
-
2022-12-23
-
2021-05-27
-
2022-02-15
-
2022-12-23
相关资源
-
下载
2021-06-23
-
下载
2023-02-03
-
下载
2021-06-06