void cal()
{ fclose(fp); system("cls");
if(NO!=0)
{int i=0;
for ( i=0;i<NO;i++)
{
if (TelInfo[i].sex == "f")
{ current_female ++;}
else { current_male ++;}
}
} else{ printf("\n\t\t 性别总结时出现异常"); }
rewind(fp);
current_recorder ++;
printf("\ncurrent female is %d\n", current_female);
printf("current male is %d\n", current_male);
getch();
return;
{ fclose(fp); system("cls");
if(NO!=0)
{int i=0;
for ( i=0;i<NO;i++)
{
if (TelInfo[i].sex == "f")
{ current_female ++;}
else { current_male ++;}
}
} else{ printf("\n\t\t 性别总结时出现异常"); }
rewind(fp);
current_recorder ++;
printf("\ncurrent female is %d\n", current_female);
printf("current male is %d\n", current_male);
getch();
return;