I need help on something i can't describe in words, please!

This is a discussion on I need help on something i can't describe in words, please! within the C++ Programming forums, part of the General Programming Boards category; for instance
cout << "Please enter your phone number in the format (XXX) XXX - XXXX: \n";
cin.get(phone_num, 25);
cin.ignore(80, ...

I need help on something i can't describe in words, please!

how would i have the computer pre-input the - and () so that the user does not have to type them in, for user -friendly?

also, could someone describe to me how to do a password search, like the user types in a password, than the computer tries to search for validity, and if so, continue on to the program, else closes it down.