What is it supposed to do and how is it failing? It would help a lot if you could give a good description of it's behavior.
On Thu, Oct 1, 2009 at 9:04 PM, rommel vidal <[email protected]>wrote: > > > hey any body plsssss. help me to fix this program this is my project.... > and to be submitted this day plsss help.... > just fix the error and make it to run properly > > THIS IS THE SOURCE > > char user[20],pass[20],user1,pass1,choi; > int x; > main() > { > clrscr(); > gotoxy(34,12); > printf("username:"); > gotoxy(34,13); > printf("password:"); > gotoxy(43,12); > scanf("%s", &user); > gotoxy(43,13); > scanf("%s", &pass); > user1=strcmp(user, "teresa"); > if(user==0) > { > clrscr(); > gotoxy(30,12); > printf("correct username and password"); > getch(); > } > else > { > clrscr(); > printf("invalid username and password"); > getch(); > } > pass1=strcmp(pass,"abjelina"); > if(pass1==0) > { > clrscr(); > for(x=1;x<=79;x++) > { > gotoxy(x,20); > printf("|"); > } > for(x=1;x<=79;x++) > { > gotoxy(x,20); > printf("Û"); > delay(10000); > gotoxy(33,18); > printf("loading..%d%",x+21); > delay(10000); > } > } > else > { > printf("acess denied"); > getch(); > } > clrscr(); > gotoxy(37,1); > printf("MY CONTACTS"); > gotoxy(1,3); > printf("----------------------------------------------------------"); > gotoxy(1,4); > printf("\t\tName\t\t\|\t\ home\t\t|\t mobile\t\t"); > gotoxy(1,5); > printf("----------------------------------------------------------"); > gotoxy(11,6); > printf("Joyce L."); > gotoxy(11,7); > printf("Jocelyn C."); > gotoxy(11,8); > printf("Jorenz V."); > gotoxy(64,6); > printf("09282828282"); > gotoxy(64,7); > printf("09292929292"); > gotoxy(64,8); > printf("09181818181"); > gotoxy(40,6); > printf("321-1111"); > gotoxy(40,7); > printf("321-1212"); > gotoxy(40,8); > printf("321-1313"); > gotoxy(30,15); > printf("[1]- add entry\n"); > gotoxy(30,16); > printf("[2]- delete entry\n"); > gotoxy(30,17); > printf("[3]- view all entries\n"); > gotoxy(30,18); > printf("choice is:"); > gotoxy(40,18); > scanf("%s", &choi); > if(choi==1) > { > void add(); > } > else if(choi==2) > { > void del(); > } > else if(choi==3) > { > void view(); > } > else > { > printf("invalid choice"); > exit(); > } > getch(); > } > > > > > > Surf faster. Internet Explorer 8 optmized for Yahoo! auto launches 2 of > your favorite pages everytime you open your browser. Get IE8 here! > http://downloads.yahoo.com/sg/internetexplorer/ > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed]
