View Single Post
Old 02-23-2005, 06:02 PM   #1 (permalink)
JerryTyrrell290
 
Newb Techie

Join Date: Jan 2005

Posts: 8

JerryTyrrell290

Question A Couple of Quickies (C++)

So Im trying to write this thing. I have a few lines of code that look like this:

Code:
     char a [30];                                   // User Input (password)
     char b [30] = "password";                      // Actual password
     cout << "Enter Password to close program: ";
     cin.getline (closea,30);                       // Gets User Input (password)
     if (strcmp (closea,closeb) == 0)               // Compares the two strings
     {
          etc...                                    // Does the stuff
     }
"b" is supposed to be a password, currently set to password. I was wondering if anyone knows a way to get tha characters to show up as "*" when they are typed instead of letters? Its not necessary, but it would be nice to have it that way, for secrecy purposes.

________________________________________________
________________________________________________
________________________________________________


I have another quickie. Is there any way to get a program to send an e-mail. Any insite into this subject would be greatly appreciated.
JerryTyrrell290 is offline