![]() |
#2
op1232022-06-26 20:03
|
到底什么情况。。。

#include<stdio.h>
#include<string>
#include<io.h>
int main()
{
std::string inpath = "E:\\c语言视频教程\\Download\\*.*";
long handle;
struct _finddata_t fileinfo;
handle=_findfirst(inpath.c_str(),&fileinfo);
if (handle == -1)
return -1;
do
{
printf("%s\n", fileinfo.name);
}
while (!_findnext(handle,&fileinfo));
_findclose(handle);
return 0;
}
#include<string>
#include<io.h>
int main()
{
std::string inpath = "E:\\c语言视频教程\\Download\\*.*";
long handle;
struct _finddata_t fileinfo;
handle=_findfirst(inpath.c_str(),&fileinfo);
if (handle == -1)
return -1;
do
{
printf("%s\n", fileinfo.name);
}
while (!_findnext(handle,&fileinfo));
_findclose(handle);
return 0;
}
昨天运行好好的。。。。
只有本站会员才能查看附件,请 登录
今天什么情况。。。。
只有本站会员才能查看附件,请 登录
昨天VS2022问题解决了。。。。。
long handle; 改成了 intptr_t handle;
昨天VS2022运行问题
只有本站会员才能查看附件,请 登录
今天VS2022运行。。。。。。OK
只有本站会员才能查看附件,请 登录
[此贴子已经被作者于2022-5-29 20:13编辑过]