Hello everyone! Im new to programming and Im working on an assignment but I keep running into trouble. My assignment is to make a trivia game and although I have made pretty good progress, I am stuck on one particular part.
The part I am stuck at is I am trying to read a string variable into an array. I have no code yet because I am exactly sure how to approach this. The string variable holds questions so I want to read each question into the array that way I can call them in their perspective index. There is a space between each question in the string variable, is there a way to write a for loop to read each question into the array at a specific index?
Thanks for your help.