include<stdio.h>
#include<conio.h>
void main()
{
char u,pp;
printf("\n\n\t\t enter the username and password");
scanf("%c%c",&u,&pp);
getch();
}
what was wrong in this code, Its taking the username but its not properly taking the input of password. And my another doubt is how can i use string for this program instead of character so that i can give big names for username and password.
And my final doubt how to store this data which was entered by the user so that he would able to login again with the same username and password again and again.
give me a complete program using strings and adding file operations so that i can save the information and use them again and again to login.