how can I make password to my prog.
-
hi all, I have done a small programe in c++. it is a "phonebook" the user can add,delete,find....contacts I need to make the user to enter a password before that.
suroor_bio wrote: I need to make the user to enter a password before that. Ok, so what's your question? Is this a console or GUI application?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
suroor_bio wrote: I need to make the user to enter a password before that. Ok, so what's your question? Is this a console or GUI application?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
hi all, I have done a small programe in c++. it is a "phonebook" the user can add,delete,find....contacts I need to make the user to enter a password before that.
One way to do this is to do in the C style by using getch() function to enter the charater. getch() function do not display character on the screen. char passwd[15]; int i=-1; printf("Enter Password:"); do { passwd[++i] = getch(); } while(passwd[i] != 13); passwd[i] = '\0'; printf("\npassword is %s\n",passwd); 13 is the ascii code for the return key. Hope it will work :) Ritu Kwatra
-
One way to do this is to do in the C style by using getch() function to enter the charater. getch() function do not display character on the screen. char passwd[15]; int i=-1; printf("Enter Password:"); do { passwd[++i] = getch(); } while(passwd[i] != 13); passwd[i] = '\0'; printf("\npassword is %s\n",passwd); 13 is the ascii code for the return key. Hope it will work :) Ritu Kwatra
Ritu Kwatra wrote: 13 is the ascii code for the return key. Hope it will work WOW!, you back :)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
hi all, I have done a small programe in c++. it is a "phonebook" the user can add,delete,find....contacts I need to make the user to enter a password before that.
check out this cp link..... maybe u might find it useful..... http://www.codeproject.com/script/comments/forums.asp?forumid=1647&XtraIDs=1647&searchkw=rateep&sd=3%2F23%2F2005&ed=6%2F21%2F2005&select=1095306&df=100&mpp=50&fr=6602#xx1095306xx[^] cheerz..... "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
-
check out this cp link..... maybe u might find it useful..... http://www.codeproject.com/script/comments/forums.asp?forumid=1647&XtraIDs=1647&searchkw=rateep&sd=3%2F23%2F2005&ed=6%2F21%2F2005&select=1095306&df=100&mpp=50&fr=6602#xx1095306xx[^] cheerz..... "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13