Add to Favorites    Make Home Page 1125 Online  
 Language Categories  
 Our Services  

Home » C Home » File Operations Home » Class Record Retrieval Program

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title Class Record Retrieval Program
Author Anil Kumar Yanamandra
Author Email anilyanamandra [at] gmail.com
Description This Program is Useful to record and maintain
student details like names, marks obtained etc.

Category C » File Operations
Hits 395937
Code Select and Copy the Code
#include<stdio.h> #include<conio.h> #include<process.h> #include<dos.h> #include<stdlib.h> #include<dir.h> #define MAX_STUD 200 char logusr[80]; struct usrlog { char name[80]; struct date d; struct time t; }; struct user { char lname[80]; char lpassword[80]; int lmode; }; struct student { char name[80]; char pinno[15]; int id; }; struct midsubj { int midno; char subject[25]; int tot; long stoffset; long endoffset; }; struct marks { int id; int marks; }; struct date d; void main() { (void)getdate(&d); show(); mfunct(); } mfunct() { int choice; clrscr(); mloop: gotoxy(1,25); textcolor(MAGENTA); cprintf(" GODAVARI INST. OF ENGG. & TECH."); gotoxy(65,2); textcolor(MAGENTA); cprintf("Date: %d:%d:%d",d.da_day,d.da_mon,d.da_year); gotoxy(30,5); textcolor(YELLOW); cprintf("MAIN ACCESS MENU"); textcolor(CYAN); gotoxy(20,10); cprintf("1. Register "); gotoxy(20,11); cprintf("2. Login " ); gotoxy(20,12); cprintf("3. Help "); gotoxy(20,13); cprintf("0. Exit "); gotoxy(40,17); textcolor(GREEN); cprintf(" Enter your choice:"); textcolor(RED); choice=getche(); switch(choice) { case '1': Register(); break; case '2': Login(); break; case '3': clrscr(); gotoxy(1,25); textcolor(MAGENTA); cprintf(" GODAVARI INST. OF ENGG. & TECH."); textcolor(YELLOW); gotoxy(10,10); cprintf(" * Select "1" for Registering your self to the program."); gotoxy(10,12); cprintf(" * Select "2" for Loging in if you are Registered."); gotoxy(10,14); cprintf(" * select "0" to exit the program. "); getch(); clrscr(); goto mloop; case '0': Endprogram(); break; default: clrscr(); gotoxy(30,12); textcolor(RED); cprintf(" WRONG CHOICE SELECT AGAIN"); getch(); clrscr(); goto mloop; } } Endprogram() { clrscr(); textmode(1); gotoxy(7,10); textcolor(GREEN); cprintf(" THANKS FOR USING THE PROGRAM"); gotoxy(7,13); textcolor(MAGENTA); cprintf("GODAVARI INST. OF ENGG. & TECH."); gotoxy(12,21); textcolor(CYAN); cprintf(" Program Coded By "); gotoxy(10,23); cprintf(" ANIL KUMAR YANAMANDRA"); gotoxy(6,25); cprintf("Email: [email protected]"); getch(); textmode(2); exit(0); } show() { textmode(1); textbackground(1); clrscr(); gotoxy(4,2); textcolor(5); cprintf("GODAVARI INST. OF ENGG. & TECH."); textcolor(1251); gotoxy(5,8); cprintf(" CLASS RECORD RETRIVAL PROGRAM"); gotoxy(16,10); textcolor(BROWN); cprintf("VER 1.0.0"); gotoxy(13,16); textcolor(2); cprintf("C- Project by"); gotoxy(9,18); cprintf("ANIL KUMAR YANAMANDRA"); gotoxy(12,19); cprintf("Pin#:04551A0505"); sleep(3); gotoxy(12,25); printf(" Press any key to continue"); getch(); textmode(2); textbackground(BLACK); clrscr(); textcolor(WHITE); } /* This function returns 0 if id is not present and returns loginmode if id is present 1. student mode 2. faculty mode, 3. Admin mode-1 if no users are present*/ int checkuser(char *lname) { static FILE *p; static struct user usr; int found=1; p=fopen("reguser.dat","r"); if(p==NULL) { return(-1); } while(fread(&usr,sizeof(usr),1,p)==1) { found=1; if(strcmp(lname,usr.lname)==0) { found=0; break; } } fclose(p); if(found==0) return(usr.lmode); else return(0); } Register() { static FILE *p; static struct user usr; int check,i; char c2,c,password[80]; regloop: clrscr(); gotoxy(1,25); textcolor(MAGENTA); cprintf("GODAVARI INST. OF ENGG. & TECH."); gotoxy(65,2); textcolor(MAGENTA); cprintf("Date: %d:%d:%d",d.da_day,d.da_mon,d.da_year); gotoxy(30,5); textcolor(YELLOW); cprintf("REGISTRATION FORM"); gotoxy(10,10); textcolor(CYAN); cprintf("Enter Login name :"); gotoxy(10,11); cprintf("Enter Login Password:"); gotoxy(10,12); cprintf("Enter Login Mode :"); gotoxy(1,19); textcolor(RED); cprintf("** Login Modes 1.Student 2. Faculty 3. Administrator"); strcpy(usr.lname,"

Related Source Codes

Script Name Author
The Game Opposite as seen on Nokia 2300 Mobile Manikanta
RECURSIVE BALANCED QUICK SORT ashish
Radix Sort ashish
Change your mouse pointer Ashim
The blinking star Shashank
Data Validation Crylittlebaby
To search a file by giving file type like mp3 or mpeg or doc Prashanth SR
Menus Demonstration B.Chidhambaram
Employee Database Project Using C. Reenku Raman Nayak
Creating a Lexical Analyzer in c fahad bader al-buhairi �դ ?�� ��??���
Calendar Program Omkar & Devendra
Stop double Process for start in C Cedrik Jurak
Stop double Process for start in C Cedrik Jurak
Time Scheduler Atiq Anwar
A timepass game between atmost two players Rahul Roy

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=1151


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review