0

Please help with this code I cannot display in the other function block

#include <windows.h> #include<stdio.h> #include<conio.h> //contains delay(),getch(),gotoxy(),etc. #include <stdlib.h> #include<string.h> //contains strcmp(),strcpy(),strlen(),etc #include<ctype.h> //contains toupper(), tolower(),etc #include<dos.h> //contains _dos_getdate #include<time.h> int AdminLogin(); //function declartion for admin login int LibrarianLogin(); void password(); // function declaration for libarian login int AdminMenu(void); // function declaration in admin menuDel char AddLibrarian(); //function declaration for add librarian char ViewLibrarian(char LibrarianForm1,char LibrarianForm2,char LibrarianForm3,char LibrarianForm4,int ContactNo); //function declaration in view librarian char DeleteLibrarian(); //function declaration in delete librarian char RegisterBooks(); // function declaration in Register books int SucAdded(char a,char b, char c,char d,int e); // function declaration when you add librarian #define BKSP 8 #define ENTER 9 COORD coord = {0, 0}; // sets coordinates to 0,0 //COORD max_buffer_size = GetLargestConsoleWindowSize(hOut); COORD max_res,cursor_size; void gotoxy (int x, int y) { coord.X = x; coord.Y = y; // X and Y coordinates SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord); } void delay(unsigned int mseconds) { clock_t goal = mseconds + clock(); while (goal > clock()); } int main() { int login; printf("1. ADMIN LOGIN\n"); printf("2. LIBRIAN LOGIN\n"); scanf("%d",&login); if(login == 1) { AdminLogin(); } else if(login == 2) { LibrarianLogin(); } else{ printf("You've Invalid key!!"); } return 0; } int AdminLogin() // function defination AdminLogin { password(); } void password() //function defination for password { system("cls"); char ch,pass[10]; char password[10]={"wayfuture"}; int i=0,j; char Input

4th Dec 2018, 4:17 PM
SingleName
SingleName - avatar
1 Respuesta
0
add your code to playground to be more readable
5th Dec 2018, 7:32 AM
Prokopios Poulimenos
Prokopios Poulimenos - avatar