c++遍历目录下文件
来源:互联网 发布:星摩小妖妖淘宝 编辑:程序博客网 时间:2024/05/22 08:24
#include<iostream>#include<string.h>#include<io.h>using namespace std;void traval(char name[]);//遍历一个目录//int i=0;int main(){ char name[250]="E:\\KuGou\\*.mp3"; traval(name);}void traval(char name[])//遍历一个目录{ _finddata_t file; long lf; if((lf=_findfirst(name,&file))==-1l) { return ; } else { while(_findnext(lf,&file)==0) { cout<<file.name<<"\t"; cout<<endl; } } _findclose(lf);}
0 0
- 遍历目录下文件
- 遍历目录下文件/子目录(C/C++)
- 递归遍历目录下文件
- c++ 遍历目录下文件
- C++遍历目录下文件
- C++遍历目录下文件
- C++ 遍历目录下文件
- c++遍历目录下文件
- c++ 遍历目录下文件
- python 遍历目录下文件
- bash 遍历目录下文件
- java 遍历目录下文件
- c++ 遍历目录下文件
- c++ 遍历目录下文件
- c++ 遍历目录下文件
- c++ 遍历目录下文件
- C遍历文件夹下文件
- 遍历目录下文件或文件夹
- 一道java线程面试题--设计4个线程,其中两个线程每次对j增加1,另外两个线程对j每次减少1。写出程序。
- 【SPOJ】1716 Can you answer these queries III 线段树
- Jquery EasyUI的添加,修改,删除,查询
- VS2012 中文版转英文版 英文版转中文版 界面语言切换
- JAVA八种基本数据类型
- c++遍历目录下文件
- Cocos2dx 3.2 横版过关游戏Brave学习笔记(五)
- java POI实现向Excel中插入图片
- WeChall Encodings: URL
- CCNP路由实验之十二 MPLS
- 笔试面试题解备忘1:字符串转换成整数
- java读写Properties文件中文问题
- 大数据与医学的艺术
- bug:error:too few arguments to function ‘fopen’