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

21st Jan 2019, 7:42 AM
Sonu Raj
Sonu Raj - avatar
3 Antworten
+ 1
Is this about the coding challenge here on Sololearn?
21st Jan 2019, 9:57 AM
HonFu
HonFu - avatar
+ 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.
21st Jan 2019, 10:08 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
0
Can you explain it with a example
21st Jan 2019, 8:03 AM
Sahil Bhakat
Sahil Bhakat - avatar