Hello I coding a password verification in my programming class but when executed it fails to recognize a valid password. The requirements for the password are that it must be at least 6 characters have at least one uppercase and one lower case character as well as having at least one number. I have concerns over how I wrote the prototype function and my for loop inside the isValid function. can anyone look through this code and point me in the right direction?
Think carefully about line 56. Are you incrementing the pointer ... or the variable it points to?
Then consider where you put your tests (lines 57 to 60). These need to be AFTER the looping, not within it, or they will make their judgement after the first letter.
On a lesser note, you may need
#include <cstring>
A good debugging skill is to print out the values of some variables; e.g. within your loop. Just looking at code won't tell you what is wrong.