Actually, that's legal C++ if you include cstdlib (which you'd have to do with C too, except it's called stdlib.h there). Not good C++, but C++ nevertheless.
Actually, that's legal C++ if you include cstdlib (which you'd have to do with C too, except it's called stdlib.h there). Not good C++, but C++ nevertheless.
hanst, what's wrong with that allocation method? That's how I used to do it back in 85.