cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Array Randomization Error
Array Randomization Error
Jan 31, 2010 at 6:41pm UTC
titanflyer
(8)
I am trying to randomize the value of the array so that each time the Getters are called they will select a different name and level. Right now when I compile and run it output the name and level as blank spaces.
Last edited on
Jan 31, 2010 at 8:37pm UTC
Jan 31, 2010 at 6:58pm UTC
mcleano
(922)
Call
srand()
at the beginning of main() not each time you use your member functions.
Topic archived. No new replies allowed.