projectstu.h of student management system header file
#include<dos.h> void displayTime(){ struct time curtime; gettime(&curtime); printf("\t\t%02d:%02d:%02d",curtime.ti_hour,curtime.ti_min,curtime.ti_sec); } void displayDate(){ struct date today; getdate(&today); printf("\n%02d/%02d/%04d",today.da_day,today.da_mon,today.da_year); } int countStudent() { FILE *fp; int n,last; fp=fopen("student.dat","rb");//open file in binary mode fseek(fp,0,SEEK_END); last=ftell(fp); n=last/sizeof(struct student); fclose(fp); return n; } void listStudent() { FILE *fp; int n,i; struct student x; fp=fopen("student.dat","rb");//open file in binary mode n=countStudent(); for(i=0;i<=n-1;i++) { fread(&x,sizeof(x),1,fp); printStudent(x); } fclose(fp); } struct student searchStudent(char *scno) { FILE *fp; int n,i; struct stude...