








Memory re-allocation
Question: Is there a standard method/operator in C++ analogous to standard C’s realloc() function that enables resizing of dynamic memory allocated by new operator? Answer: There is no standard call
Question: Is there a standard method/operator in C++ analogous to standard C’s realloc() function that enables resizing of dynamic memory allocated by new operator? Answer: There is no standard call
Question: This is legal (safe) and works with the compilerenvironment I am using: CMyObject *ptr = NULL; delete ptr;However, I get a run-time error (assert) whenI use the array delete
Question: Do you know of a good tool for getting performance data on a pure C++ program?I need a tool that indicates sections of code thatuse the most CPU/memory, etc.
Question: I have a templated class A that defines two operator =, and a templated class B : public class A which should inherit the two virtual a::operator = I
Question: Background: Digital UNIX 3.2g, Alpha platform, latest GNU.From the FAQ, I know that you are supposed to declare static member variables externally from the declaration and inonly one place.
Question: I defined a class A, which has three constructors:A(), A(int), A(int, int)Can I just define the behavior in one constructor, say A(int, int), and let the other two constructors
Question: Is there a way to do some macro magic with members of a given class sothat when a designated name is called, itinvokes the macro that called the class
Question: I am a C/C++ programmer who is moving from the beginner to intermediate level. My question is, how does one move successfully from the beginner to intermediate level? Answer: