What do you expect this to do:
because what it's actually doing is reading a single int into slot 21 of a 20-element array (invalid). Are you trying to read in 20 different values?Code:cin>>numPlayers[20];
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 15
Thread: Problem with functionsThreaded View
|
Click Here to Expand Forum to Full Width |