I am fairly familiar with Java and C# but new to c++. I feel it's very unclear where I should look for the standard c++ library documents. I found this one , provided by Microsoft, is pretty easy to...
Type: Posts; User: sparks
I am fairly familiar with Java and C# but new to c++. I feel it's very unclear where I should look for the standard c++ library documents. I found this one , provided by Microsoft, is pretty easy to...
Thanks Daved for correcting me. I got the idea completely wrong.
So what's really the problem to that piece of code :confused: ? Are we saying the "Super Moderator" didn't point out the right problem and I got it right :p ? I really wouldn't expect that as a...
Thanks Valis, that's clear now.
Hi,
I am pretty new to C++. What I think about the code is that the "get_buffer" function returns nothing. Because the pointer is a local variable of the function it will be freed as soon as it...
Thanks for reply guys.
But Valis said:
do you mean you have to explicitily destroy objects in the "stack"? But what I thought is that only objects in the "heap" needs to be "free"ed (in C)...
Objects created by "new" and "malloc" are allocated in the "heap" while others are allocated in the "stack". But where is the pointers returned by such functions are allocated in the memory. Pointers...