Lottery number checker

Hi!

I would like to write a program that can check whether my tipps are winning or not. There's a file containing the winning numbers and another with my tipps.
They lists of more draws not just one exact draw.

For example:

Drawn numbers:

1
2
3
4
1,2,4,10,14,15,16,18
4,10,12,15,16,17,18,20
1,2,4,5,9,13,14,19
1,4,7,8,9,12,14,16

Tipps:
1
2
3
2,3,5,6,11,14,18,19
1,2,8,10,13,14,16,19
2,4,5,10,14,16,18,19


I would like to know which numbers of the tipps were drawn.

I read the content of the files into two different string vectors then I tokenized them. But when I run the program crashes.

My question is what would be the best solution for this? (maybe not mine....)


Thank you very much!
Last edited on
Could you post your code, or at least a small extract of the code that crashes. A crash could happen due to may reasons (probably due to bad pointers or corrupted buffers). Seeing the code is crucial to finding the bug.
Topic archived. No new replies allowed.