Trouble getting this to run through checking the password properly, please help. I have been running through this for a week now. I can't seem to find my error.
bool testUpper(char psword[])
{
int length = strlen(psword);
int count;
for (count = 0; count < length; count++)
{
if (isupper(psword[count])) // checks if there is an uppercase Letter
{
returntrue;
}
}
returnfalse;
}
//verify lowercase letter is present
bool testLower(char psword[])
{
int length = strlen(psword);
int count;
for (count = 0; count < length; count++)
{
if (islower(psword[count])) // checks if there is an lowercase Letter
returntrue;
}
returnfalse;
}
//verify a digit is present
bool testDigit(char psword[])
{
int length = strlen(psword);
int count;
for (count = 0; count < length; count++)
{
if (isdigit(psword[count])) // checks if there is a digit
returntrue;
}
returnfalse;
}