|
-
March 10th, 2009, 09:49 AM
#6
Re: Declare a 2D Dynamic array
 Originally Posted by Skizmo
Use 'rand' (and 'srand') to generate numbers between 1 and 26 and put them in the array.
Alright, I know how to use the rand() function, however, I'm not sure about srand() or how Im going to tell the compiler to pick a random number between 1 and 26? or how these numbers will be converted to alphabets? I am very new to c++, Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|