Help need?

S

subseven77

can anyone help me with this program using array.. im new wit c++



Write a program that simulates a lottery. The program should have an
 
J

John Harrison

can anyone help me with this program using array.. im new wit c++

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
 
J

John Harrison

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
474,292
Messages
2,571,494
Members
48,174
Latest member
RonnyLoren

Latest Threads

Top