#include<stdio.h>
#include<conio.h>
#include<windows.h>

struct user

{
    char FullName[50];
    char email[50];
    char password[50];
    char username[50];
    char phone[50];
};

void takeinput(char ch[50])
{
    fgets(ch,50,stdin );
    ch[strlen(ch) - 1] = 0;
}

void generateUsername(char email[50],char username[50])
{
    //skk84909@gmail.com
    for (int  i = 0; i < strlen(email); i++)
    {
        
        if (email[i] = '@' ) break;
        else username[i] = email[i];    
        
    }
    

}
int main()
{
    system("color 0b");

    int opt;
    struct user user;
    
     
  printf("\n\t\t\t\t----------Welcome to authentication system---------------");
  printf("\nPlease choose your opreation");
  printf("\n1.Signup");
  printf("\n2.Login");
  printf("\n3.Exit");

  printf("\n\nYour choice:\t");
  scanf("%d",&opt);
  fgetc(stdin);

  switch (opt)
  {

  case 1: 
    printf("Enter your full name:\t");
    takeinput("user.fullName");
    printf("Enter your email:\t");
    takeinput("user.email");
    printf("Enter your contact no:\t");
    takeinput("user.phone");
    printf("Enter your password");
    takeinput("user.password");

  }

  return(0);
}