The picture cuts off the list at the right, but all that’s missing is more possible word choices. It generates a random number (1-10) at the very beginning of the function and then decides which case to execute based on the word length that the player inputs. It then sets MyHiddenWord to whatever word in WordChoice is assigned to the random number.
Side note, I had to include ctime and cstdlib to get the random number generator to work.