+ 1

Consecutive Character On Password

Hello guys, I am writing a program that checks the password strength. I can't figure out how to add the consecutive characters part. This is what I have so far: if (list[i] == (list[i] - 1)) { if (list[i] + 1) { consChar++; } } list[i] is a string where the user inputs the password. consChar will print out wether there is consecutive characters or not. I know it might be completely wrong so I need any help and input! Feel free to ask me any further questions if I missed something.

11th Jul 2017, 2:36 PM
Hansel Abreu
Hansel Abreu - avatar
1 Respuesta
- 1
I'd suggest to go to Google. there you'll find dozens of examples in different languages. from there you can distill the algorithm is you wish really to code it yourself
11th Jul 2017, 5:01 PM
Skipper
Skipper - avatar