int main(int argc, char *argv[])
{
char name [120];
char ch[MAX_LINE_SIZE];
char str[MAX_LINE_SIZE];
char * pf,* pt;
int charge;
int sum;
int i,j;
FILE * fp;
sprintf(name,"%s",argv[1]);
printf("name is [%s]\n",name);
memset(str,0,MAX_LINE_SIZE);
memset(name,0,sizeof(name));
fp=fopen(name,"r");
while(1)
{
printf("begin\n");
memset(ch,0,MAX_LINE_SIZE);
if(fgets(ch,MAX_LINE_SIZE,fp) == NULL)
{
break;
}
慕雪6442864