I'm so confused! My code won't work right. I need it to print out the login name and it won't do that. It just prints out the password again. How do I go about printing out the login name??
printf("\n\nPlease enter a login name: ");
gets(temp);
ERROR = 0;
for(i=0; i<4; i++)
if(strcmp(name[i], temp) == 0)
{
ERROR = 0;
break;
}
if (ERROR == 0)
{ Decrypt(name[i-1]);
printf("Username Found!\n");
printf("Username: ");
puts(name[i+1]);
printf("Password: ");
puts(name[i+3]);
}
else
printf("Invalid Login Name");
}