Hey, So I am completely new to c++ and having some difficulty finding the info I need. I am trying to fill up the empty elements of an array after filling it with characters from a string using a nested loop. I don't want someone to give me code, but possibly a point in the right direction to go. I feel like I should have added something in the nested loop that put the string in the array and that it has something to do with ASCII.
When a variable is created and not initialised (i.e. giving it a default value) it will contain random data; assuming you have initialised your array to zero before populating the array with your string then you could simply loop through the array checking for zero, and if found you then fill it with a random value.