2 Topics
|
|
This is a simple password implementation. void getPassword() { int i = 0, flag = 0 ; char c ; char password[100] ; cout<<"\n Enter Password : " ; while(1) { c = getch() ; if(c! = 13 && c! = 8) { cout<<"*" ; Password[i] = c ; i++ … |
|
Is there any standard function in gcc that is equivalent to getch() so that I can read the input without hitting enter key? |
The End.