0
How to Generate Password With C++
i Want to generate Password With C++ but i don't know how to generate so plz help me for this question
3 Answers
+ 1
Is this about the coding challenge here on Sololearn?
+ 1
You can study the codes in this challenge https://www.sololearn.com/learn/5676/?ref=app
Or search the code playground for old password generator codes.
Basically, you need a loop, a string variable, an array of characters to choose from, and the rand() function.
Inside the loop, select a character from the array using rand() then add the chosen one to the string variable. Do that until you get the length that you want. And voila, you got your random generated password.
0
Can you explain it with a example