Apologies for any grammatical errors, english isnt my first language.

my project is to read from a file (whose lines are laid out as "integer"-"integer", eg: 2-6)

the first integers represent the number of times a dice needs to be rolled and the second integer represents the number of possible faces on a dice (from the above example; a 6 sided dice was rolled 2 times). i am struggling to use arrays to take the two integers from every line so i can manipulate them.

any idea?

much thanks!!!

Source: Windows Questions C++