![]() |
|
|||||||
| Technology Computing, programming, science, electronics, telecommunications, etc. |
|
|
Thread Tools | Display Modes |
|
|
#3 |
|
Turns out my CRS is a symptom of TMB.
Join Date: Jan 2010
Location: Chicago suburbs
Posts: 2,916
|
What you want to do is to check the minimum number of times.
bool oklength = PassLength(password); bool okdigit = containDigit(password); while (!okLength || !okDigit) { if (!okLength) // err MSG if (!okDigit) // err MSG // get password again oklength = PassLength(password); okdigit = containDigit(password); }
__________________
![]() Talk nerdy to me. |
|
|
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|