lets say i have the folowing content in a text file:
Teams:
New-York Knicks
Washington Wizards
Chicago Bulls
Utah Jazz
;
> Game 1, Oct. 20, 2013
New-York Knicks - Washington Wizards 98-103 (51-50)
Utah Jazz - Chicago Bulls 91-88 (51-50)
;
> Game 2, Oct. 27, 2013
New-York Knicks - Utah Jazz 90-83 (63-47)
Chicago Bulls - Washington Wizards 90-98 (63-51)
;
how can i store each score and associate to the correct team?
for example to have integer int newyorksum that will get the values 98 and 90 into it?
sorry for not writing any code i just have no clue how to do that. i was able to place all the teams in a string array but this....no clue...please any kind of help well be life savour
in order of experience level here is what you can do:
-arrays
-containers
-write a class that holds one instance of a game/teams and put that in container
-write the same class except its a linked list meaning you dont use any external containers to store it