rifter1818 Posted May 19, 2004 Posted May 19, 2004 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. Quote
Menge Posted May 19, 2004 Posted May 19, 2004 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) Quote Menge
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.