C++ Help please program that requests a password

I am having trouble on this program it is passed due I have been working on it for a while could someone please look at what I have and help me correct it?

program that requests a password and verifies that it is a valid
password. To be valid the password must be at least 6 characters long and
contain at least one digit.

Sample Output (inputs in bold)
Please enter a password: pass6
Passwords must be at least 6 characters long
Please enter a password: TarrantNW
Passwords must include at least one digit (1-9)
Please enter a password: Tccd03
Thank you, that is a valid password