1234567891011121314151617181920212223242526
string password; void pass(void) { char c; password=""; int a=0; cout<<"enter password"<<endl; while(a<2) { c=getch(); if(c==13) { if(a==0)//enter no number {pass();break;} else break; } password +=c; cout<<"*"; if(c>='9') break; a++; } }
while(a<2)
while(a<20)
password.size()