一、源代码 # include <stdio.h> int main(){ int ret = 0; char passwd[20]; printf("请输入密码:"); scanf("%s", passwd); printf("请确认(Y/N):"); ret =