Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pointer to an array of type class ANDstack overflow help needed

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I need to make a pointer to an array "players[1000]" of type "PlayerInf", which is a class that I made ("players" was definde by "PlayerInf players[1000]". Also, will this stop the stack-overflow error that I get when I change the size of the array to 1060+? If not, how can I fix that problem?
 
Why you don't use dinamically allocating of memory? In this case if you can't alloc too much memory, the allocating functions or operators will return NULL without stopping the program. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top