Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

GravtyKlz

resizing array

This topic is 5591 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there a way to resize an array? After the twentyth time seeing someone ask how to ask someone to enter a screen and print it backwards I finally decided ide do it and I did it with some pointers but then I thought to do it with an array but ide have to resize it(I think) in order to do it the way I want to.

Share this post


Link to post
Share on other sites
Advertisement
what languages are you thinking of using?

in c++ you can use the standard vector which can easily be resized in various ways.

using the c-style array you can allocate memory for a new array and copy the old array into it.

other languages have other capabilities.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!