getpass.c

来自「《C/C++程序员实用大全》配套代码,适用初学C++的人员。」· C语言 代码 · 共 16 行

C
16
字号
#include <stdio.h>
#include <conio.h>
#include <string.h>

void main(void)
 {
   char *password;

   password = getpass("Enter Password:");

   if (strcmp(password, "Bible"))
     printf("Password Incorrect\n");
   else 
     printf("Password OK\n");
 }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?