c++ - realloc function that would work for memory allocated using new instead of realloc -


I know that there is a function that will allow me to resize the memory block (and with a free function has been added ). However, instead of using new instead of realloc , I am trying to do this with C ++ class with some member points. What <+++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++ In advance

No, no. And obviously, if you are using new or new [] your C ++ code is probably not designed. Use std :: vector instead of the new [], and try using values ​​instead of new ones.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -