Hello, I haven't done C++ in a while and I don't really remember any of it. Anyway I am trying to get a Windows Form Application to work like a Lottery. Ie I enter names and then the program pick one at random. Could anyone help me with this?
Ps the reason I am getting back into C++ is that I have a class for it next term and I figured I should try and get a head start.
Newish to C++
Started by xGhost4000x, Aug 08 2008 12:36 AM
2 replies to this topic
#1
Posted 08 August 2008 - 12:36 AM
|
|
|
#2
Posted 14 August 2008 - 01:13 PM
Get a count of the number of names entered (stored in an array or list), then generate a random number and return the corresponding name.
#3
Posted 17 August 2008 - 07:46 AM
For the random number generator part, you should get familiar with srand and rand. They are part of the C Standard Library (stdlib.h).


Sign In
Create Account

Back to top









