首页 > 解决方案 > 星形密码

问题描述

我想要这个星形密码。任何人都可以提供帮助。

/*password*/
        LOGINP:
    clrscr();
    printf("\n\n\n\n\nUsername: its_vishuuuu");
    gotoxy(x,y);
    printf("Login\n\n\t\t\tPassword: ");
    fflush(stdin);//covert char to int screen
    gets(pass1);//enter string
    check=strcmp(pass1,password1);//check password
    if(check!=0)
    {
        clrscr();
        goto LOGINP;
    }

标签: cwindows

解决方案


在 Linux 中,您可以使用getpass()函数。而对于替代看到这个


推荐阅读