Password algorithm (C or C + +)
Users questions:To achieve such an algorithm is that when I enter a string of keyboard characters (such as "password"), the screen is ("********"), how does this algorithm to achieve, thank you .
Experts answer: ** This procedure runs in the TC (C language) **Conio.h # include stdio.h # include # include stdlib.h voidmain () (friend = chars [80]; it = 1; clrscr (); printf( *n*n*n*n*t*t*tPASSWORD:*t );a=getch();s[0]=a;while(a!=13){printf( * );a=getch();s[i]=a;i++;}s[i]= *0 ;printf( *n*n*n*t*tyourpasswordis:%s ,s);printf( *n*n*n*tpressanykeytocontinue! );getch();}**C++Of this procedure see Annex **** sorry: I am from my previous program interception down, to change the main function it will return to remove them before they can run the program I wrote is a file from the new password #. cpp ** Annex: password #. cpp