this code is supposed to get username and password entered.. username is Admin and password is 2016.. if the user enters them correctly it'll print that the login process was done successfully else it'll ask the user to enter them again.. I made the code but it's not working and I don't know why.. here it's:
#include <stdio.h>
int main(){
char* *username[5]; int password,choice; char Admin,i;
printf("Welcome to the Students' Registration System\n");
printf("Dear Registry employee: Kindly insert your username:\n");
for (i=0;i<5;i++){
scanf("%c", &username[i]);
}
printf("Insert your password:\n");
scanf("%d", &password);
if ((*username[5]=="Admin")&&(password==2016))
printf("The login process is successfully done");
else
while ((*username[5]!="Admin")||(password!=2016))
{
printf("The login process failed\n");
printf("Dear Registry employee: Kindly insert the correct username and password\n");
for (i=0;i<5;i++){
scanf("%c", &username[i]);
}
scanf("%d", &password);
}
printf("Please choose the number of your next step:\n");
printf("[1]Add new student\n");
printf("[2]Add new course\n");
printf("[3]Assign\remove courses for the student\n");
printf("[4]Search and view students' details:\n");
printf("[5]Request reports:\n");
printf("[6]Update student/course record:\n");
printf("[7]Delete student/course record:\n");
return 0;
}