Hello I am trying to make a program that takes the first and last names of people and makes a username for each person, the username is the first letter of the first name and 7 letters of their last name. I believe I did this correctly..
I then want to take a txt file of passwords and assign it to an array (which again I believe I did correctly) Then I want to assign each username one of the passwords using a random number generator. I have 50 usernames and passwords so I made a random number generator that makes 50 random numbers, my problem I cant seem to be able to use my random number generator to assign each username one of the passwords and not repeat passwords. Any help would be greatly appreciated.
I took the cout out of line 40 and 50 thinking that those might be messing it up but its still not outputting them. I dont understand why it outputs them in lines 40 and 50 but not when i write the same thing with the random.