for instance

cout << "Please enter your phone number in the format (XXX) XXX - XXXX: \n";
cin.get(phone_num, 25);
cin.ignore(80, '\n');

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.

so for askin so much or any trouble