[Tfug] Need help with a C++ algorithm

Stephen Hooper stephen.hooper at gmail.com
Thu Mar 15 15:27:09 MST 2007


On 3/15/07, Brian Murphy <murphy+tfug at email.arizona.edu> wrote:
> It's a neat parlor trick but can you count on your
> system using the original K&R style malloc?  You'll have to make that
> choice based upon your project's requirements.

I frequently use it to impress my friends!

If he were coding this it would be idiotic to use this in any type of
code other than testing, or for debugging.

In reality the solution he came up with is fine, except it probably is
more complicated than it really needs to be, but maybe that is just
C++.




More information about the tfug mailing list