求各位大大帮忙 !打死我也不知道哪的问题!·
#include <stdio.h >#include <dir.h >
#include "windows.h"
#include <io.h>
struct ffblk
{
char ff_reserved[21];
char ff_attrib;
int ff_ftime;
int ff_fdate;
long ff_fsize;
char ff_name[13];
};
int main(void)
{
struct ffblk ffblk;
int done;
printf("Directory listing of *.c*");
done=findfirst("*.c",&ffblk,1);
while (!done)
{
printf("%s", ffblk.ff_name);
done=findnext(&ffblk);
}
return 0;
}
=========================================================================================
我用c-free提示done=findfirst("*.c",&ffblk,1); 和done=findnext(&ffblk); 有问题
我就是 看不出来啊·!
愁四我了
==========================================================================================