Source Code For Sign up and Sign in in C

May anyone tell me whats wrong with this code i am beginner

#include

#include

#include

main()

{

    char username[1000][2000];

    char password[1000][2000];

    int i;

    printf("Hello What You Want to do: \n 1.REGESRTER \n 2.LOG IN \n 3.Exit ");

    scanf("%d",&i);

    if(i==1)

     {

     printf("Hello New User Enter Your password:");

     scanf("%s",&username[0][1000]);

     printf("Enter a password For your User name");

     scanf("%s",&password[0][1000]);

     

         

     }

     

     else if(i==2)

     {

                  printf("Enter Your User name:");

             scanf("%s",&username);

             printf("Enter Your Password:");

              scanf("%s",&password);

              

             else if (strcmp(username,username[0][1000])==0 && strcmp(password,password[0][1000])==0)

              {

                  printf("Wellcome Back Master %s",username)

              }

     }

     else

     {

        printf("For Exit Hit ENTER button");

        

    }

return 0;

}

Replies

  • Kaustubh Katdare
    Kaustubh Katdare

    What error message are you getting? 

  • Yadav Abhinav
    Yadav Abhinav

    else without if.. 

  • Yadav Abhinav
    Yadav Abhinav

    or it just run sometime but show file stop working. 

  • Gopal Dole
    Gopal Dole

    Hii may help pliz micro projects in drawing pliz brother.. 



  • Yadav Abhinav
    Yadav Abhinav

    i didn't  understand what are you saying  about??? 


You are reading an archived discussion.

Related Posts

Here's the details, thanks in advance for the advice guys!!!The hinged blocks are delrin, the center block is aluminum. The fastener needs to remain locked while being vibrated, jostled, and...
simple problem , is how to make the login the login function to check if the username and password are exist after the registration 
Resurrecting the dead, mind control, radiation gone wrong, and man-eating robots, we've rounded up 10 of history's creepiest true tales of science and engineering gone wrong.https://www.designnews.com/electronics-test/10-scary-true-stories-engineering-history?ADTRK=UBM&elq_mid=6156&elq_cid=1069623
Speed control of radiator fan using differential gear arrangement
-Any major software.-Any major certificate.-Any area for study and research.