Quote:
Originally Posted by HM
Every time you call if (!a()), you are calling a().
|
Perhaps, but this is not the behavior I see while using Visual C++ 2010 Express.
Quote:
Please enter a password: abc
Passwords must be at least 6 characters long
Please enter a password: abc123
Thank you that is a valid password
Press Enter to close window...
|
Another example:
Quote:
Please enter a password: abc
Passwords must be at least 6 characters long
Please enter a password: abcdef
Passwords must include at least on digit (1-9)
Please enter a password: 123
Passwords must be at least 6 characters long
Please enter a password: abcdef
Passwords must include at least on digit (1-9)
Please enter a password: abc123
Thank you that is a valid password
Press Enter to close window...
|