Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Im a VB programmer who now has to learn c++ very quickly, how do i redimmension arrays and get the upper bound of an array in c++ preferably not .net specific (yes i know this is outside the usual bounds of this forum) Speaking of which any tutorials on c++ or specificly moving vb-> c++ would be greatly appreciated.
Posted
arrays in C++ have fixed size. if you need to redim an array, you must create another array with the size you need, then move the old array items to the new one and then delete the old one. (there's a way to not need to MOVE and DELETE, but that involves more pointer stuff than i think u'd like)
Menge

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...