student_id:lastname:firstname:gpa
void listRecords(Student **hashtable);
void listRecords(Student **hashtable) { int i, j; Student temp; Student *s; for(i=0; i<HASHTABLESIZE; i++) { for(j=i; j<HASHTABLESIZE; j++) { if(s[i].student_id > s[j].student_id) { temp = s[j]; s[j] = s[i]; s[i] = temp; }printf("%d:%s:%s:%.1f\n", s[i].student_id, s[i].lastname, s[i].firstname, s[i].gpa); } }printf("no record\n"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)