Password verification program in c


















Active 6 years, 9 months ago. Viewed 12k times. Password needs to contain at least one uppercase letter. Password needs to contain at least one digit.

Start over. Benjamin W. I'd suggest you create separate functions for each of those validations and then chain them together in the desired order. It keeps it flexible and disjoint. Add a comment. Active Oldest Votes. I modify your code a lot you use const int for array size but it can't use for another function so i use enum PWSIZE I make loop in main.

I offer you change std::string and first you get password first time and check case like upper lower else next is re enter check It seems little dirty but this is just concept.. Jan 09, Explain the benefits and challenges of federal involvement in Solved Jan 06, Solved Jan 02, Solved Dec 31, Submit New Assignment. Please select subject. Python Program to check if two sentences can be made the same by rearranging the words.

Article Contributed By :. Easy Normal Medium Hard Expert. Writing code in comment? Please use ide. Load Comments. What's New. Most popular in Strings. More related articles in Strings. We use cookies to ensure you have the best browsing experience on our website. Using functions makes your code more readable and cleaner and better maintainable, so the more the merrier. The only thing now is that it does accept passwords with numbers which is what it is supposed to do, but it also accepts without numbers as well.

You could add another function if isalpha str[count] it checks if all input is alphabet, it is invalid We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge. You're trying to visit a URL that doesn't currently exist on the web. Most likely, a member posted a link a long time ago to a web page that has since been removed. It's also possible that there was a typo when posting the URL. We redirect you to this notice instead of stripping out the link to preserve the integrity of the post.

Answered by mrnutty in a post from 11 Years Ago. Answered by Luther von Wulf 7 in a post from 11 Years Ago. Jump to Post. Sure, the only problem is that most compiler right now do not support the auto keyword This is not a problem with the code. Thanks No problem. Can I get a tip on whats wrong with my verifyNum function.



0コメント

  • 1000 / 1000