John said:
Because you are new to C++, the idea is that you practise C++ so that
you learn it. Try solving the problem by yourself. When you get stuck
post the code you have written here and ask specific questions about it.
That way you will get help.
Don't expect this group to do your homework for you, you must at least
*try* to do it yourself.
john
Look at the problem description
'generate a random number in the range of 0 through 9 for each element
in the array'
'compare the corresponding elements in the two arrays and keep a count
of the digits that match'
'display the random numbers stored in the lottery array'
etc.
These are small sub-problems in the overall problem. Pick one of these
smaller sub-problems first, and try to solve that. Don't try to do the
whole thing at once. Start with something smaller and easier and
gradually work your way up to the whole thing.
john