+ 1

Please help with this code I cannot display the inputted data into the ViewLibrarian function block

char AddLibrarian() { system("cls"); char LibrarianForm1,LibrarianForm2,LibrarianForm3,LibrarianForm4; int ContactNo; int user; printf("\t\t\xDB\xDB\xDB\xDB ADD LIBRARIAN \xDB\xDB\xDB\xDB\n"); printf("\t\tEnter name:"); scanf("%s",&LibrarianForm1); printf("\n"); printf("\t\tEnter Password :"); scanf("%s",&LibrarianForm2); printf("\n"); printf("\t\tEnter Gmail :"); scanf("%s", &LibrarianForm3); printf("\n"); printf("\t\tEnter Address: "); scanf("%s", &LibrarianForm4); printf("\n"); printf("\t\tContact Number:"); scanf("%d", &ContactNo); printf("Press any key....\n\n"); getch(); SucAdded(LibrarianForm1,LibrarianForm2,LibrarianForm3,LibrarianForm4,ContactNo); } int SucAdded(char a,char b, char c,char d,int e) { char LibrarianForm1,LibrarianForm2,LibrarianForm3,LibrarianForm4; int ContactNo; int ViewOrBack; printf("\t\t1. View Librarian\n"); printf("\t\t2. Add Another Librarian\n"); printf("\t\t3. Back\n"); printf("\t\tEnter your choice :"); scanf("%d", &ViewOrBack); if(ViewOrBack==1) { ViewLibrarian(LibrarianForm1,LibrarianForm2,LibrarianForm3,LibrarianForm4,ContactNo); } else if(ViewOrBack==2) { AddLibrarian(); } else if(ViewOrBack==3) { AdminMenu(); } else{ printf("\t\tINVALID INPUT!!"); SucAdded(LibrarianForm1,LibrarianForm2,LibrarianForm3,LibrarianForm4,ContactNo); } } char ViewLibrarian(char LibrarianForm1,char LibrarianForm2,char LibrarianForm3,char LibrarianForm4,int ContactNo) { system("cls"); char a,b,c,d; int e; // passing argument in ListOfLibs ... printf("\t\t\t\xDB\xDB VIEW LIBRARIAN\xDB\xDB"); printf("\n\n"); printf("\t________________________________________________________\n"); printf("\t\|NAME | PASSWORD | GMAL ACCOUNT | ADDRESS | CONT

4th Dec 2018, 4:17 PM
SingleName
SingleName - avatar
9 Respuestas
0
*Asterisk* Kind of hard without the full code. SingleName place full code in SoloLearn playground source file and link it here.
4th Dec 2018, 10:04 PM
John Wells
John Wells - avatar
+ 4
I need to know your inputs while running and compiler you used.
5th Dec 2018, 1:57 AM
John Wells
John Wells - avatar
5th Dec 2018, 1:24 AM
SingleName
SingleName - avatar
+ 1
You can see my code in the link ?
5th Dec 2018, 1:35 AM
SingleName
SingleName - avatar
0
John Wells can you please help with this
4th Dec 2018, 10:01 PM
✳AsterisK✳
✳AsterisK✳ - avatar
0
John Wells tried to figure it out too but not working out
4th Dec 2018, 10:05 PM
✳AsterisK✳
✳AsterisK✳ - avatar
0
SingleName need to run that code to know were the bug is....
4th Dec 2018, 10:06 PM
✳AsterisK✳
✳AsterisK✳ - avatar
0
can you visit my profile ? I saved my code
5th Dec 2018, 1:22 AM
SingleName
SingleName - avatar
5th Dec 2018, 1:22 AM
SingleName
SingleName - avatar