|
-
May 12th, 2009, 02:22 PM
#10
Re: Problem with functions
 Originally Posted by jcnewton
its asks the user how many players are going to be playing. I dont know how to use vectors that well yet.
MY instructor told me to just make an array with 20 spaces and if i dont use all of them its ok. it'll just loop till the number the user selected.
You're missing the point. You don't need that number to be an array. Even if you did, valid indexes are 0 through 19. 20 is invalid memory and your program will crash.
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
|