Resizing arrays
Bad day or not, it was also a good example of why std::vector is a good choise. Pointers can be tricky, especially on a bad day. [grin]
Thanks a lot for all your comments, I will have a look at std::vector (I never took it into consideration before, to be honest).
I like that comment =)
Again, thanks a lot :)
Quote: Original post by Enigma
Of course, if you really wanted to write a function to resize raw arrays (you don't, you want to use std::vector or std::deque)
I like that comment =)
Again, thanks a lot :)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement