struct NamesAtt
{
char student_Surname[20];
char student_givenName[50];
char gender[100];
}Summary;
...
void Students_Absence_Report()
{
system("cls");
printf("Student Presence/Absence Report\n");
printf("===============================\n");
printf(" Name \t\t%%Presence %%Absence\n");
for(i=0; i<student; i++)
printf("(%d) %s %s\t %.2f\t %.2f\n", i+1, Summary.student_Surname[i], Summary.student_givenName[i], Presence_percentage[i], 100.00-Presence_percentage[i]);
printf("\n");
printf("------- END OF ATTENDANCE REPORT -------\n\n");
system("pause");
system("cls");
}
void Barred_Students_List()
{
system("cls");
printf("Students BARRED from the Examination\n");
printf("====================================\n");
for(i=0; i<student; i++)
{
if(Presence_percentage[i] < 70.00)
{
if(Summary.gender[i] == 'M')
{
printf("Mr. %s", Summary.student_Surname[i]);
printf(" %s\n", Summary.student_givenName[i]);
}
else if(Summary.gender[i] == 'F')
{
printf("Ms. %s", Summary.student_Surname[i]);
printf(" %s\n", Summary.student_givenName[i]);
}
}
Number_Barred++;
}
printf("Total Number of Students Barred = %d\n", Number_Barred);
printf("\n");
printf("------- END OF BAR LIST -------\n\n");
system("pause");
system("cls");
}
what happen to this two functions ??
i'll get error when i execute it.. if i have enter values..
and i also got tried i dont enter any values in.. it will execute completely..