CrazyEngineers
  • Source Code For Sign up and Sign in in C

    Yadav Abhinav

    Yadav Abhinav

    @yadav-XHcwKB
    Updated: Oct 26, 2024
    Views: 1.4K

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

    #include<stdio.h>

    #include<conio.h>

    #include<string.h>

    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;

    }

    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Kaustubh Katdare

    AdministratorOct 23, 2018

    What error message are you getting? 

    Are you sure? This action cannot be undone.
    Cancel
  • Yadav Abhinav

    MemberOct 24, 2018

    else without if.. 

    Are you sure? This action cannot be undone.
    Cancel
  • Yadav Abhinav

    MemberOct 24, 2018

    or it just run sometime but show file stop working. 

    Are you sure? This action cannot be undone.
    Cancel
  • Gopal Dole

    MemberOct 24, 2018

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



    Are you sure? This action cannot be undone.
    Cancel
  • Yadav Abhinav

    MemberOct 24, 2018

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


    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register