#include<myhead.h>
int main(int argc, const char *argv[])
{
FILE *fp=fopen("./2.txt","r");
if(fp == NULL)
{
perror("错误信息:");
return -1;
}
char buff[100];
int count =0;
while(fgets(buff,sizeof(buff),fp)!=NULL)
{
count++;
}
printf("%d\n",count);
return 0;
}