简体   繁体   English

如何在Windows命令上使用C ++程序获取目录中的文件数

[英]how to get number of files in a directory using c++ program on windows commands

I have some N number of images(pictures) in a file.I want to get number images in that file and store that number to another file. 我在一个文件中有N个图像(图片),我想在该文件中获取数字图像并将该数字存储到另一个文件中。 I want all these to be done through C++ code on Windows using windows commands with system(); 我希望所有这些都可以通过Windows上的C ++代码使用带有system()的Windows命令来完成。

Can any one Help. 可以帮忙。

也许你可以尝试的变化其中,你会算的文件的数量而不是打印的名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM