I am using getline(myfile, string) to get the the first line of the code.
My problem is I need the two numbers in each of the second lines under the title of the game (Small Beans, Pirates Booty, Big Money Hustla). So for the first game I need to somehow transfer the two numbers, 1 and 5 into an int array and need it to stop after it stores the 5. So I am thinking...
int array[80];
do
{
I am not sure what would go here...
Possibly getline function where getline(myfile, string) gets the second line, but how do I terminate it before it also "gets" the third line??
Also there would be two numbers in the string so converting it to an integer would give me just one integer, which is why I believe I should use an array which would allow me to use both integers
}
while(code gets two numbers (1, 5) in second line of each block of code)
Once you have the string, you need to split it based on the location of the " " space character. Once you know how many objects it splits in to you can then convert the necessary ones to int/unsigned