I'm fairly new to programming, I'm currently learning c++. I have a for loop that checks a gets each element of the string and converts it to an ascii value. I use this to check a password...for example it has a upper case,lower,digits,etc. So in my loop i have like 4 sets of if's and else if's.

So anyway I know there is a switch statement, but it doesnt seem fitting for this case.
thanks

what exactly is your query?
you haven't even provided the code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.