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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Arrays in J++ or C++

Status
Not open for further replies.

helpPleasee

Programmer
Mar 7, 2002
1
US
Got a problem. Im trying to create a dynamic array of objects within an object. The first time through the loop it works, the second time it doesnt. my code to increase my array size is /*allRooms[x] = new Room(x + 1);*/. I dont know what im doing. Im writing in J++. Please help.Thanx
 
How about using a (java.util.)Vector instead? A Vector is basically a 'grow-able' array. (As is an ArrayList.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top