Add to Favorites    Make Home Page 1310 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 17356
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: yanamandraanil@yahoo.com"); 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,"<1||strlen(usr.lpassword)<1) { clrscr(); gotoxy(10,12); textcolor(RED); cprintf(" NAME AND PASSWORD SHOULD NOT BE EMPTY"); getch(); goto end; } check=checkuser(usr.lname); if((check!=0)&&(check!=-1)) { clrscr(); gotoxy(1,13); textcolor(RED); cprintf("The Login name is already used by another user please select another"); getch(); goto regloop; } else { p=fopen("reguser.dat","a"); fwrite(&usr,sizeof(usr),1,p); fclose(p); } getch(); end: mfunct(); } Login() { static char name[80],password[80],c; static int check,i; static struct user usr; static struct usrlog l; static FILE *p,*q; lloop: check=0; i=0; 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(33,5); textcolor(YELLOW); cprintf("LOGIN WINDOW"); gotoxy(10,12); textcolor(CYAN); cprintf("Enter Login Name :"); gotoxy(10,14); cprintf("Enter Login Password:"); gotoxy(31,12); i=0; c='<1||strlen(usr.pinno)<1) { clrscr(); gotoxy(10,12); textcolor(RED); cprintf(" NAME AND PINNO SHOULD NOT BE EMPTY"); sleep(2); goto regloop; } check=checkstu(usr.pinno,usr.id); if((check!=0)&&(check!=-1)) { clrscr(); gotoxy(1,13); textcolor(RED); cprintf("The Pinno or id is already used by another user please select another"); sleep(2); goto regloop; } else { p=fopen("student.dat","a"); fwrite(&usr,sizeof(usr),1,p); fclose(p); gotoxy(1,16); textcolor(WHITE); cprintf(" Student added press y to add anther"); gotoxy(57,17); flushall(); textcolor(RED); ch=getchar(); } } getch(); end: Faculty(); } Marksentry() { FILE *p,*q,*r; struct student stu; struct midsubj entr; struct marks mark,mark1; int i=0,midno,marks,id,check,ch=0,ch2=0,flag=0; char subject[80],c; p=fopen("student.dat","r"); q=fopen("marks.dat","a+"); r=fopen("details.dat","a+"); clrscr(); gotoxy(1,25); textcolor(MAGENTA); cprintf("GODAVARI INST. OF ENGG. & TECH."); gotoxy(1,2); textcolor(1221); cprintf("WELCOME! %s",logusr); 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("MID MARKS ENTRY"); textcolor(CYAN); gotoxy(10,11); cprintf("MID NUMBER :"); gotoxy(10,13); cprintf("SUBJECT :"); gotoxy(22,11); scanf("%d",&midno); gotoxy(22,13); i=0; c='<entr.tot;i++) { loop: clrscr(); gotoxy(1,25); textcolor(MAGENTA); cprintf("GODAVARI INST. OF ENGG. & TECH."); gotoxy(30,5); textcolor(YELLOW); cprintf("MARKS ENTRY"); textcolor(CYAN); gotoxy(10,11); cprintf("ENTER ID :"); gotoxy(10,13); cprintf("ENTER MARKS:"); gotoxy(22,11); scanf("%d",&id); gotoxy(22,13); scanf("%d",&marks); rewind(p); while(fread(&stu,sizeof(stu),1,p)==1) { ch=0; if(stu.id==id) { ch=1; break; } } fseek(q,entr.stoffset+1,SEEK_SET); while(fread(&mark,sizeof(mark),1,q)==1) { ch2=0; if(mark.id==id) { ch2=1; break; } } if(ch==0) { clrscr(); textcolor(RED); cprintf("THIS ID NOT PRESENT IN THE STUDENT DATABASE"); getch(); goto loop; } if(ch2==1) { clrscr(); textcolor(RED); cprintf("MARKS FOR THIS ID ARE ENTERED TO CHANGE USE MODIFY OPTION"); getch(); goto loop; } if((ch==1)&&(ch2==0)||flag==0) { flag=1; mark1.id=id; mark1.marks=marks; fseek(q,1,SEEK_END); fwrite(&mark1,sizeof(mark1),1,q); gotoxy(1,16); printf("MARKS ADDED PRESS ANY KEY"); } else { goto loop; } getch(); } } fseek(q,0,SEEK_END); entr.endoffset=ftell(q); fseek(r,1,SEEK_END); fwrite(&entr,sizeof(entr),1,r); fcloseall(); } } Viewmark() { FILE *p,*q,*r; struct student stu; struct midsubj mid; struct marks mark; int i,midno,check,ch1=0,ch2=0; char ch='y',subject[25],pinno[15],c='<=mid.endoffset)) { ch2=0; if(mark.id==stu.id) { ch2=1; break; } } if(ch2==1) { gotoxy(10,16); cprintf("YOUR MARKS FOR THIS MID IN THE SUBJECT ARE : %d",mark.marks); flushall(); gotoxy(58,17); ch=getchar(); } else { gotoxy(10,16); cprintf("YOUR MARKS FOR THIS MID IN THE SUBJECT ARE NOT ENTERED"); flushall(); gotoxy(58,17); ch=getchar(); } } } end: fcloseall(); flushall(); getch(); } Student() { static int choice; lloop: clrscr(); gotoxy(1,25); textcolor(MAGENTA); cprintf("GODAVARI INST. OF ENGG. & TECH."); gotoxy(1,2); textcolor(1221); cprintf("WELCOME! %s",logusr); 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("STUDENT CONSOLE"); gotoxy(15,10); textcolor(CYAN); cprintf("1. VIEW MARKS IN A MID"); gotoxy(15,11); cprintf("2. VIEW AVERAGE MARK"); gotoxy(15,12); cprintf("3. LOG OUT"); gotoxy(15,13); cprintf("0. EXIT "); gotoxy(40,17); textcolor(GREEN); cprintf("Enter your choice:"); textcolor(RED); flushall(); choice=getche(); switch(choice) { case '1': Viewmark(); Student(); break; case '2': Averagecalc(); Student(); break; case '3': mfunct(); break; case '0': Endprogram(); break; default: clrscr(); gotoxy(30,12); textcolor(RED); cprintf(" WRONG CHOICE SELECT AGAIN"); getch(); goto lloop; } } Modifymark() { FILE *p,*q,*r,*s; struct student stu; struct midsubj mid; struct marks mark,mark1,new; int i,midno,check,ch1=0,ch2=0,newmark,flag2=0; char ch='y',subject[25],pinno[15],c='<=mid.endoffset)) { ch2=0; if(mark.id==stu.id) { ch2=1; break; } } if(ch2==1) { gotoxy(1,15); cprintf("YOUR MARKS FOR THIS MID IN THE SUBJECT ARE : %d",mark.marks); rewind(q); s=fopen("temp.dat","a"); while(fread(&mark1,sizeof(mark1),1,q)==1) { pos=ftell(q); if(pos<=mid.stoffset) fwrite(&mark1,sizeof(mark1),1,s); else if((pos>mid.stoffset)&&(pos<mid.endoffset)) { if((stu.id==check)&&flag2==0) { flag2=1; new.id=check; new.marks=newmark; fwrite(&new,sizeof(new),1,s); } else { fwrite(&mark1,sizeof(mark1),1,s); } } else fwrite(&mark1,sizeof(mark1),1,s); } fclose(q); fclose(s); unlink("marks.dat"); rename("temp.dat","marks.dat"); q=fopen("marks.dat","r"); gotoxy(1,16); cprintf("YOUR MARKS AFTER MODIFYING ARE : %d",newmark); flushall(); gotoxy(59,17); ch=getchar(); } else { gotoxy(10,16); cprintf("YOUR MARKS FOR THIS MID IN THE SUBJECT ARE NOT ENTERED"); flushall(); gotoxy(59,17); ch=getchar(); } } } fcloseall(); flushall(); getch(); end: Faculty(); } Averagecalc() { FILE *p,*q,*r; struct student stu; struct marks mark; struct midsubj mid; int mids,prio,buffer[100],i=0,j=0,check,sum=0,t,ch1=0; float avg=0.0; char ch='y',subject[25],pinno[15],c; p=fopen("student.dat","r"); q=fopen("marks.dat","r"); r=fopen("details.dat","r"); while(toupper(ch)=='Y') { c='<=mid.endoffset)) { ch1=0; if(mark.id==check) { ch1=1; break; } } if(ch1==1) { buffer[i]=mark.marks; i++; } else { buffer[i]=0; i++; } } } if(i<mids) { clrscr(); gotoxy(10,16); textcolor(RED); cprintf("SUFFICIENT MIDS ARE NOT ENTRERED"); flushall(); getch(); } else if(mids<prio) { clrscr(); gotoxy(10,16); textcolor(RED); cprintf("NO. OF PRIORITY MIDS CANNOT BE MORE THAN THE TOTAL MIDS"); flushall(); getch(); } else { for(i=0;i<mids;i++) for(j=0;j<mids;j++) if(buffer[i]>buffer[j]) { t=buffer[i]; buffer[i]=buffer[j]; buffer[j]=t; } for(i=0;i<prio;i++) sum=sum+buffer[i]; avg=(float)sum/prio; gotoxy(1,15); cprintf("YOUR AVERAGE MARK IN THIS SUBJECT IS :%f",avg); gotoxy(58,17); flushall(); ch=getchar(); } } else { clrscr(); gotoxy(10,12); textcolor(RED); cprintf("THIS IS NOT A VALID PINNO PLEASE CHECK"); flushall(); getch(); } } fcloseall(); flushall(); getch(); } 49,426,15); ////setcolor(8); rectangle(230+135,425,275+140,440); //setfillstyle(1,15); floodfill(231+160,426,15); floodfill(249+159,426,15); ////setcolor(15); line(415,290,415,440); line(420,245,420,440); line(415,240,415,205); line(420,240,420,205); line(225,245,225,440); //vertical line(230,250,230,440); line(225,240,225,205); //vertical line(230,240,230,205); line(222,240,425,240); line(222,245,425,245); //horz ellipse(222,242.5,90,270,2.5,2.5); ellipse(425,242.5,270,90,2.5,2.5); rectangle(231,230,414,239); ellipse(227,206,0,180,9,1); ellipse(227,204,0,180,9,1); putpixel(220,204,15); putpixel(220,205,15); putpixel(220,206,15); putpixel(235,204,15); putpixel(235,205,15); putpixel(235,206,15); ellipse(227,203,0,180,6,7); line(227,195,227,192); int r=190; ellipse(227+r,206,0,180,9,1); ellipse(227+r,204,0,180,9,1); putpixel(220+r,204,15); putpixel(220+r,205,15); putpixel(220+r,206,15); putpixel(235+r,204,15); putpixel(235+r,205,15); putpixel(235+r,206,15); ellipse(227+r,203,0,180,6,7); line(227+r,195,227+r,192); /* //floodfill(305,424,15); //floodfill(305,429,15); //floodfill(325,424,15); //floodfill(325,421,15); //floodfill(332,420,15); //floodfill(332,429,15); */ ellipse(315,170,140,210,105,100); ellipse(330,170,330,40,105,100); ellipse(292,167,105,140,75,95); ellipse(353,167,40,75,75,95); ellipse(323,78,350,190,60,8); ellipse(323,77,350,190,60,8); //ellipse(259,24,295,358,58,51); ellipse(240,24,321,358,78,71); ellipse(192,40,342,7,128,100); ellipse(448,30,180,203,128,100); ellipse(443,5,194,220,128,100); ellipse(438,-9,203,234,128,100); ellipse(198,-6,310,340,128,100); ellipse(319,30,0,360,7,2); floodfill(320,29,15); circle(319,24,3); line(319,20,319,18); circle(319,14,4); line(319,9,319,0); //ellipse(319,4,0,360,2,3); circle(319,2,1); line(316,6,322,6); line(316,6,314,4); line(322,6,324,4); //??????????????????????????????????? ////////////////////////////////////////////////////////// //ellipse(); ellipse(321,258,48,130,140,50); ellipse(321,255,48,130,140,50); ellipse(321,241,48,130,140,50); ellipse(321,238,48,130,140,50); //setfillstyle(6,11); // line(265,79,277,70); //////setcolor(4); //line(385,81,380,76); //while(!kbhit()) //{ delay(300); setfillstyle(10,15); floodfill(322,160,15); setfillstyle(6,15); floodfill(322,193,15); //} //line(319,26,319,480+h);//center ///////////////////////////////////////////new//////////////////////////// rectangle(150,283,225,294); //line(146,294,225,294); line(150,298,225,298); line(150,240,150,440); //pole line(146,240,146,440); line(150,299,150,440); //pole line(146,299,146,440); r=-80; int n=34; ellipse(227+r,206+n,0,180,9,1); ellipse(227+r,204+n,0,180,9,1); putpixel(220+r,204+n,15); putpixel(220+r,205+n,15); putpixel(220+r,206+n,15); putpixel(235+r,204+n,15); putpixel(235+r,205+n,15); putpixel(235+r,206+n,15); ellipse(227+r,203+n,0,180,6,7); line(227+r,195+n,227+r,192+n); l=128; h=150; ellipse(51+l,132+h-7,340,216,4,15); ellipse(62+l,131+h-7,327,216,4,15); ellipse(72+l,132+h-7,327,216,2,15); ellipse(42+l,132+h-7,327,216,2,15); ellipse(57+l,107+h,0,170,16,5); line(40+l,107+h,40+l,140+h-7); line(75+l,107+h,75+l,140+h-7); line(34+l,107+h,40+l,107+h); line(75+l,107+h,81+l,107+h); line(34+l,107+h,28+l,102+h); //slant line(81+l,107+h,87+l,102+h); line(28+l,102+h,34+l,98+h); line(87+l,102+h,81+l,98+h); line(34+l,98+h,58+l,95+h); line(58+l,95+h,81+l,98+h); ellipse(65+l,92+h,104,190,30,30); ellipse(50+l,92+h,350,76,30,30); line(58+l,61+h,58+l,63+h); circle(58+l,58+h,3); line(58+l,55+h,58+l,53+h); circle(58+l,50+h,2); line(58+l,48+h,58+l,47+h); circle(58+l,45+h,1); line(58+l,44+h,58+l,41+h); line(100-5,240+15,100-5,440); //pole line(96-5,240+15,96-5,440); r=-134; n=49; ellipse(227+r,206+n,0,180,9,1); ellipse(227+r,204+n,0,180,9,1); putpixel(220+r,204+n,15); putpixel(220+r,205+n,15); putpixel(220+r,206+n,15); putpixel(235+r,204+n,15); putpixel(235+r,205+n,15); putpixel(235+r,206+n,15); ellipse(227+r,203+n,0,180,6,7); line(227+r,195+n,227+r,192+n); line(146,294,97,302); line(146,298,97,306); line(146,283,97,291); ///////////////////////////////////////inner///////////////// //rectangle(275+k,290,365+k,440); // inner //rectangle(268+k,283,372+k,440); // //inner //line(225,367,151,367); rectangle(155,302,220,364); rectangle(155,302+70,220,364+75); int q=-133; int d=-2; line(302+q-5,405+d,302+q-5,440+d); line(338+q+5,405+d,338+q+5,440+d); ellipse(327+q+5,405+d,108,180,35,30); ellipse(313+q-5,406+d,360,74,35,30); d=-77; line(302+q-5,405+d,302+q-5,440+d); line(338+q+5,405+d,338+q+5,440+d); ellipse(327+q,405+d,105,180,30,25); ellipse(313+q,405+d,360,80,30,25); putpixel(163,300,11); setfillstyle(6,15); floodfill(163,330,15); floodfill(160,380,15); line(141,305,141,360); line(101,310,101,365); line(141,305,101,310); line(141,360,101,365); int x=70; line(141,305+x,141,440); line(101,310+x,101,440); line(141,305+x,101,310+x); q=-200; line(302+q+4,405+d,302+q+4,440+d); line(338+q-1,405+d,338+q-1,440+d-2); ellipse(327+q,405+d,105,180,20,15); ellipse(313+q+4,405+d,360,80,20,15); d=1; line(302+q+4,405+d,302+q+4,440+d-2); line(338+q-1,405+d,338+q-1,440+d-2); ellipse(327+q,405+d,105,180,20,15); ellipse(313+q+4,405+d,360,80,20,15); rectangle(178,415,197,439); setfillstyle(7,15); floodfill(179,416,15); rectangle(178,415-75,197,440-76); setfillstyle(7,15); floodfill(179,415-75+1,15); line(130-3,417,130-3,440); line(113+3,420,113+3,440); line(113+3,420,130-3,417); putpixel(114,423,4); line(113,440,130,440); floodfill(114+3,423,15); int a=-76; line(130-3,417+a,130-3,440+a-3); line(113+3,420+a,113+3,440+a); line(113+3,420+a,130-3,417+a); putpixel(114,423,4); floodfill(114+3,423+a,15); line(10,400+h,615,400+h); //////////////////////////////////////////////right\\\\\\\\\\\ int e=270; rectangle(150+e,283,226+e,294); line(146+e+4,294,225+e,294); line(146+e+4,298,225+e,298); line(150+e+80,240,150+e+80,440); //pole line(146+e+80,240,146+e+80,440); line(150+e+80,299,150+e+80,440); //pole line(146+e+80,299,146+e+80,440); l=400; h=+149; ellipse(51+l,132+h-7,340,216,4,15); ellipse(62+l,131+h-7,327,216,4,15); ellipse(72+l,132+h-7,327,216,2,15); ellipse(42+l,132+h-7,327,216,2,15); ellipse(57+l,107+h,0,170,16,5); line(40+l,107+h,40+l,140+h-7); line(75+l,107+h,75+l,140+h-7); line(34+l,107+h,40+l,107+h); line(75+l,107+h,81+l,107+h); line(34+l,107+h,28+l,102+h); //slant line(81+l,107+h,87+l,102+h); line(28+l,102+h,34+l,98+h); line(87+l,102+h,81+l,98+h); line(34+l,98+h,58+l,95+h); line(58+l,95+h,81+l,98+h); ellipse(65+l,92+h,104,190,30,30); ellipse(50+l,92+h,350,76,30,30); line(58+l,61+h,58+l,63+h); circle(58+l,58+h,3); line(58+l,55+h,58+l,53+h); circle(58+l,50+h,2); line(58+l,48+h,58+l,47+h); circle(58+l,45+h,1); line(58+l,44+h,58+l,41+h); r=270; n=n-15; ellipse(227+r,206+n,0,180,9,1); ellipse(227+r,204+n,0,180,9,1); putpixel(220+r,204+n,15); putpixel(220+r,205+n,15); putpixel(220+r,206+n,15); putpixel(235+r,204+n,15); putpixel(235+r,205+n,15); putpixel(235+r,206+n,15); ellipse(227+r,203+n,0,180,6,7); line(227+r,195+n,227+r,192+n); line(146+e+135,302,97+e+135,294); line(146+e+135,306,97+e+135,298); line(146+e+135,291,97+e+135,283); line(100-5+e+190,240+15,100-5+e+190,440); //pole line(96-5+e+190,240+15,96-5+e+190,440); r=325; n+=15; ellipse(227+r,206+n,0,180,9,1); ellipse(227+r,204+n,0,180,9,1); putpixel(220+r,204+n,15); putpixel(220+r,205+n,15); putpixel(220+r,206+n,15); putpixel(235+r,204+n,15); putpixel(235+r,205+n,15); putpixel(235+r,206+n,15); ellipse(227+r,203+n,0,180,6,7); line(227+r,195+n,227+r,192+n); rectangle(155+e,302,220+e,364); rectangle(155+e,302+70,220+e,364+75); q=140; d-=1; line(302+q-5,405+d,302+q-5,440+d); line(338+q+5,405+d,338+q+5,440+d); ellipse(327+q+5,405+d,108,180,35,30); ellipse(313+q-5,406+d,360,74,35,30); d=-77; line(302+q-5,405+d,302+q-5,440+d); line(338+q+5,405+d,338+q+5,440+d); ellipse(327+q,405+d,105,180,30,25); ellipse(313+q,405+d,360,80,30,25); putpixel(163,300,11); setfillstyle(6,15); floodfill(163,330,15); floodfill(160,380,15); ///////////////////////////// e=e-15; line(141+e+150,305+5,141+e+150,360+5); line(101+e+150,310-5,101+e+150,365-5); line(101+e+150,305,141+e+150,310); line(101+e+150,360,141+e+150,365); int v=75; line(141+e+150,305+5+v-5,141+e+150,440); line(101+e+150,310-5+v-5,101+e+150,440); line(101+e+150,305+v-5,141+e+150,310+v-5); //line(101+e+150,360+v,141+e+150,365+v); e=e+18; rectangle(178+e,415,197+e,439); setfillstyle(7,15); floodfill(179+e,416,15); int f=-75; rectangle(178+e,415+f,197+e,439+f); setfillstyle(7,15); floodfill(179+e,416+f,15); e+=130; line(130-3+e,440+a-2,130-3+e,417+a+2); line(113+3+e,440+a-2,113+3+e,420+a-2); line(113+3+e,417+a,130-3+e,420+a); putpixel(114+e,423,4); floodfill(114+3+e,423+a,15); a=1; line(130-3+e,440+a-2,130-3+e,417+a+2); line(113+3+e,440+a-2,113+3+e,420+a-2); line(113+3+e,417+a,130-3+e,420+a); putpixel(114+e,423,4); line(113+3+e,440,130-3+e,440); floodfill(114+3+e,423+a,15); q=204; line(302+q+4,405+d,302+q+4,440+d-2); line(338+q-1,405+d,338+q-1,440+d+2); ellipse(327+q,405+d,105,180,20,15); ellipse(313+q+4,405+d,360,80,20,15); q=204; d=0; line(302+q+4,405+d,302+q+4,440+d-1); line(338+q-1,405+d,338+q-1,440+d); ellipse(327+q,405+d,105,180,20,15); ellipse(313+q+4,405+d,360,80,20,15); line(302+q+4,440,302+q+4,440); setfillstyle(10,15); floodfill(322,160,15); setfillstyle(6,15); floodfill(322,193,15); ///////////////////////////////////////////////walls////////////// setfillstyle(9,15); floodfill(110,294,15); floodfill(210,290,15); floodfill(430,290,15); floodfill(520,290,15); /////////////////////////////////////////////poles setfillstyle(6,15); floodfill(93,394,15); floodfill(148,394,15); floodfill(227,394,15); floodfill(417,394,15); floodfill(498,394,15); floodfill(553,394,15); setfillstyle(9,15); floodfill(185,224,15); floodfill(465,224,15); while(!kbhit()) { delay(40); putpixel(random(640),random(248),random(15)); } getch(); cleardevice(); setcolor(13); rectangle(1,1,639,479); rectangle(15,15,624,464); //setcolor(LIGHTBLUE); setfillstyle(6,11); floodfill(2,2,13); settextstyle(7,0,3); setcolor(12); outtextxy(150,200,"MADE BY : AAYUSH AWASTHI") ; outtextxy(175,300,"BCA III YEAR"); outtextxy(75,400,"E-Mail: u_may_contact@rediffmail.com"); //delay(1000); getch(); return 0; }

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
Copyright ©2003-2017 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