direct.h文档 [英] direct.h documentation

查看:220
本文介绍了direct.h文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图写一个小块的代码,打印出一个给定的目录中的文件。我看到参考使用 direct.h 库来做到这一点,但我找不到任何文档头文件及其方法。这个库过时了吗?还有另一种方法来列出C ++中目录的所有文件名?

I'm trying to write a small block of code that prints out the files in a given directory. I've seen references to using the direct.h library to do this, but I cannot find any documentation whatsoever on the header file and its methods. Is this library outdated? And is there another way to list all filenames of a directory in C++?

推荐答案

看起来这个头函数不是为此任务,请参见 http://msdn.microsoft.com/en-us /library/as5kw0ze(v=vs.110).aspx

It seems that this header functions are not designed for this task, See http://msdn.microsoft.com/en-us/library/as5kw0ze(v=vs.110).aspx

使用 FindFirstFile FindNextFile FindClose loop like in this 示例代码

Use FindFirstFile, FindNextFile and FindClose loop like in this example code

这篇关于direct.h文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆