![]() |
|
|||||||
| Technology Computing, programming, science, electronics, telecommunications, etc. |
|
|
Thread Tools | Display Modes |
|
|
#23 | ||
|
I think this line's mostly filler.
Join Date: Jan 2003
Location: DC
Posts: 13,575
|
Quote:
Code:
int index = 0;
int length = strlen(password);
for (index = 0; index < length; index++ )
{
if (isdigit(password[index]))
return true;
}
Code:
cout << "Passwords must include at least on digit (1-9)" << endl;
cout << "Please enter a password: ";
cin.getline(password, SIZE);
And then: Code:
return false; You don't see the problem in your execution because your while loop corrects for the behavior of the test functions. But if you tested the functions individually, you would see it. Quote:
__________________
_________________ |...............| We live in the nick of times. | Len 17, Wid 3 | |_______________| [pics] |
||
|
|
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|