2/3/2020 11:34:51 AM
You need to understand something basic.
pass is an array of char, so if you want to compare each char you do like this
if (pass[i] == '1' || pass[i] == '2' .....
What are you doing here?
This is not the way to check if the char is equal to one of 0 to 9
use inbuilt function
// your code
Better use isdigit for clean code.
i should remember that i comparing char array to number.
~ swim ~ i try with if(pass[i]==1||pass[i]==2||pass[i]==4....)
But again it show error
And 8 know that is wrong way but not getting the right way so i go through that..
I try with if (pass[i]==0)
Else if (pass[i]==1)
It also shows error ..
GET THE FREE APP
Learn Playing. Play Learning
Send us a message