C Language Project For Gathering Student Information
Below is a simple C Language Program using structures, Pointers, Functions (Call by References/Value) with simple graphics.
Download Below Code And Run it with Dev C++
#include#include #include #include int arr[2][5]; struct student { int roll; char gpa[3]; char name[20]; char department[30]; char city[15]; }; struct student s[50]; void detail(struct student d[],int z); // Passing structure to function void show(struct student k[],int l); // Passing structure to function void teacher(struct student o[],int p); // Passing structure to function void search(struct student t[],int y); // Passing structure to function void citys(struct student e[],int r); // Passing structure to function void topper(struct student m[],int h); // Passing structure to function void descending(struct student p[],int u); // Passing structure to function void time(struct student a[], int s); // Passing structure to function void budget(int my[][5]); // Passing structure to function void department(struct student c[], int v); // Passing structure to function int n=0; int i; int main() { system("COLOR 5f"); printf("*************************************************************************************************************\n"); printf("*************************************************************************************************************\n"); printf("*\t\t\t\t\t\t\t\t\t\t\t\t\t\t *\n"); printf("*\t\t\t\t\t\t\t\t\t\t\t\t\t\t *\n"); printf("*\t\t\t\t Welcome To Our New School System\t\t\t\t\t\t *\n"); printf("*\t\t\t\t\t Hope You Like IT\t\t\t\t\t\t *\n"); printf("*\t\t\t\t\t\t\t\t\t\t\t\t\t *\n"); printf("*\t\t\t\t\t\t\t\t\t\t\t\t\t *\n"); printf("*\t\t\tI wish my school days could have dragged on a little longer,\t\t\t\t *\n*\t\t\t\tor that I could go back and do it later in life.\t\t\t\t *\n"); printf("*************************************************************************************************************\n"); printf("*************************************************************************************************************\n"); printf("Press Any Key To Continue"); getch(); int x; do { printf("\n\nPress 1 To Enter Data\n"); printf("Press 2 To Show All Data\n"); printf("Press 3 To Show Our Teacher Staff\n"); printf("Press 4 To To Search Student By Name\n"); printf("Press 5 To Search Student By City\n"); printf("Press 6 To See the Ascending Order\n"); printf("Press 7 To See The Descending Order\n"); printf("Press 8 To See The Time Table\n"); printf("Press 9 To Enter Budget Plan\n"); printf("Press 10 To Search Student By Department\n"); printf("Press 0 to Exit\n"); scanf("%d",&x); switch (x) { case 1: { detail(s,50); // Calling Function /* for(i=n;i<=n;i++) { s[i].roll=i+1; printf("Enter for Student %d \n\n",s[i].roll); printf("Enter Name : "); scanf("%s",s[i].name); //printf("Enter GPA : "); //scanf("%s",s[i].gpa); printf("Enter Department : "); scanf("%s",s[i].department); printf("Enter GPA : "); scanf("%s",s[i].gpa); } */ n++; break; } case 2: { show(s,50); // Calling Function /* for(i=0;i m[k+1].gpa); { student p; p=m[k]; m[k]=m[k+1]; m[k+1]=p; } } } for(k=0;k

Comments