actually its my first time with strings and arrays...
so basically i would want to do something like this...
P.S (pre-script XD) please do not use advanced commads/functions because i only know up to the array level...
Code:#include <stdio.h> #include <string.h> int main(void) { char username[50]; char password[50]; clrscr(); printf("\nUsername:\t"); gets(username); printf("\nPassword:\t"); gets(username); if(username == 'ADMIN' && password == 'admin') { clrscr(); printf("\nWelcome Administrator!"); } getche(); return 0; }