In what part of his program can i change the Password(turbo c)?
-
include<stdio.h> #include<conio.h> #include<ctype.h> pass(); menu(); new(); display(); search(); delete(); load(); load2(); load3(); border(); FILE *jsp; FILE *hj; main(){ pass(); } border(){ int a,b; clrscr(); textbackground(BLACK); textcolor(WHITE); gotoxy(3,3);cprintf("Ã"); gotoxy(3,23);cprintf("Ã"); gotoxy(78,3);cprintf("»"); gotoxy(78,23);cprintf("¼"); for(a=4;a<=77;a++){ gotoxy(a,3);cprintf("Ã"); gotoxy(a,23);cprintf("Ã"); } for(b=4;b<=22;b++){ gotoxy(3,b);cprintf("º"); gotoxy(78,b);cprintf("º"); } } load(){ int a; clrscr(); textcolor(GREEN|BLINK); gotoxy(27,12);cprintf("L o a d i n g . . . . . . . ."); textcolor(BLUE); gotoxy(27,13);cprintf("ÃÃÃÃÃÃÃÃÃÃÃÃÃÃ⦠gotoxy(27,14);cprintf("º º"); gotoxy(27,15);cprintf("ÃÃÃÃÃÃÃÃÃÃÃÃÃÃ⦠for(a=28;a<=55;a++){ textcolor(RED); gotoxy(a,14);cprintf("Ã");delay(9999⦠} return; } load3(){ int a; clrscr(); textcolor(MAGENTA|BLINK); gotoxy(27,12);cprintf("D e l e t i n g . . . . . . ."); textcolor(LIGHTMAGENTA); gotoxy(27,13);cprintf("ÃÃÃÃÃÃÃÃÃÃÃÃÃÃ⦠gotoxy(27,14);cprintf("º º"); gotoxy(27,15);cprintf("ÃÃÃÃÃÃÃÃÃÃÃÃÃÃ⦠for(a=28;a<=55;a++){ textcolor(RED); gotoxy(a,14);printf("Ã");delay(99999⦠} return; } load2(){ int a; clrscr(); textcolor(LIGHTMAGENTA|BLINK); gotoxy(27,12);cprintf("S a v i n g . . . . . . . . ."); textcolor(LIGHTMAGENTA); gotoxy(27,13);cprintf("ÃÃÃÃÃÃÃÃÃÃÃÃÃÃ⦠gotoxy(27,14);cprintf("º º"); gotoxy(27,15);cprintf("ÃÃÃÃÃÃÃÃÃÃÃÃÃÃ⦠for(a=28;a<=55;a++){ textcolor(RED); gotoxy(a,14);cprintf("Ã");delay(9999⦠} return; } pass(){ int a,b; char pass[11]; do{ border(); textcolor(WHITE); gotoxy(30,6);cprintf(" P A Y R O L L "); textcolor(15); gotoxy(30,14);cprintf("Password: "); for(a=0;a<=4;a++){ gotoxy(40+a,14);pass[a]=getch(); gotoxy(40+a,14);cprintf("*"); } textcolor(WHITE); gotoxy(30,16);cprintf("Scanning Password"); for(b=47;b<=60;b++){ gotoxy(b,16);cprintf(".");delay(999⦠} textcolor(RED); if(pass[0]=='b'&&pass[1]=='l'&&pass[⦠gotoxy(35,18);cprintf("Successful Log-in!!"); getch(); load(); menu(); break; } else{ gotoxy(37,18);cprintf("Invalid Entry!"); } getch(); clrscr(); }while(pass!="payrolls"); } menu(){ int choice; do{ border(); textcolor(WHITE); gotoxy(33,7);cprintf("P A Y R O L L"); gotoxy(33,9);cprintf("1.) NEW Payroll"); gotoxy(33,10);cprintf("2.) DISPLAY Record"); gotoxy(33,11);cprintf("3.) SEARCH Record"); gotoxy(33,12);cprintf("4.) ERASE Record"); gotoxy(33,13);cprintf("5.) EXIT Payroll"); gotoxy(33,15);cprintf("Enter Choice: "); fflush(stdin);scanf("%i",&choice); switch(toupper(choice)){ case 1: new(); break; case 2: display(); break; case 3: search(); break; case 4: delete(); break; case 5: clrscr(); border(); textcolor(WHITE|BLINK); gotoxy(35,16);cprintf("Thank You for Using!!"); break; default: gotoxy(37,16);cprintf("Unknown Choice!!"); } getch(); clrscr(); }while(choice!=5); } new(){ int c=0; char choice, fname[30], lname[40], dept[40], sex[40], ans; float rate,work,total; border(); jsp=fopen("save.dat","a+"); do{ fscanf(jsp,"%d %s %s %s %s %f %f %f",&c,&fname,&lname,&dept,&sex,&rate,&w⦠fflush(stdin); }while(!feof(jsp)); c+=1; textcolor(WHITE); gotoxy(15,4);cprintf("Employee No. %d",c); gotoxy(17,7);cprintf("First Name: "); fflush(stdin);scanf("%s",&fname); gotoxy(17,8);cprintf("Last Name: "); fflush(stdin);scanf("%s",&lname); gotoxy(17,9);cprintf("Department: "); fflush(stdin);scanf("%s",&dept); gotoxy(17,10);cprintf("Sex [male/female] : "); fflush(stdin);scanf("%s",&sex); gotoxy(47,7);cprintf("Rate per Hour: "); fflush(stdin);scanf("%f",&rate); gotoxy(47,8);cprintf("Hours Work: "); fflush(stdin);scanf("%f",&work); total=rate*work; gotoxy(47,15);cpri
-
Answer:
ââââââââââââââââââââââââââââââââââââââ⦠âââââââââ(@)(@)> RELAX <(@)(@) âââââââââ ââââââââââââââââââââââââââââââââââââââ⦠â(@)âââââââ(@)(@)âââââââââââââââââââ(@â¦
Freed Justine at Yahoo! Answers Visit the source
Related Q & A:
- How Can I use .net dll in C program?Best solution by Stack Overflow
- How can I change my yahoo password?Best solution by Yahoo! Answers
- How can I change my password on Yahoo?Best solution by Yahoo! Answers
- How can I change a password with windows 7?Best solution by Yahoo! Answers
- How can i change my password in yahoo messager?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.