#include <iostream>
#include <cstdio>
#include <conio.h>
using namespace std;
int main()
{
char a[21];
cout<<"请输入你的密码(20位以内):";
for(int i=0;i<20;i++)
{
a[i]=getch();
if(a[i]=='/r') break;
if(a[i]=='/b') { a[i]='/0';i--;continue;}
putch('*');
}
a[20] = (char)0x00;
cout<<"/byour password is:";
cout<<a<<endl;
system("pause");
return 0;
}
输入密码显示**
最新推荐文章于 2021-05-23 01:20:21 发布