|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
到底哪儿出错了
#include<io.h>
#include<direct.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MAX 256
long total;
int countLines(const char *filename);
void findAllCodes(const char *path);
void findALLFiles(const char *path);
int countLines(const char *filename)
{
FILE *fp;
int count = 0;
int temp;
if ((fp = fopen(filename,"r")) == NULL)
{
fprintf(stderr,"Can not open the file:%s\n",filename);
return 0;
}
while ((temp =fgetc(fp)) !=EOF)
{
if (temp == '\n')
本帖最后由 yuweb 于 2019-9-26 17:56 编辑
_findfirst(第67行)、findALLDirs(第82行)方法没声明
(第99行)systen应该是system吧
|
|