1
1
解决方案信用: Link
如解决方案所述,使用此函数时请小心,并确保双null终止
|
2
0
下面是一个列出文件夹中所有文件和目录的简单程序:
它看起来不像你的代码那么复杂。 通过查看文件夹中每个条目的目录结构,应该很容易找出它是否是一个目录,如果是,则中止。然后将printf更改为文件的某种delete语句。 您可能需要调用stat来告诉文件或目录。 |
3
-1
这是一个简单的windows批处理文件,可以完成这项工作。
更改第三行以使用您的目录。删除第5行的“echo”。 如果您被锁定使用“c”,则可以使用“system()”来运行它。 |
Community wiki · C中有哪些耗时的操作? 1 年前 |
Community wiki · 将所有处理器电源都投入到任务中 1 年前 |
Community wiki · C++为C添加了什么?[已关闭] 1 年前 |
Community wiki · 打印1到1000,不带循环或条件 1 年前 |