Arrays of pointers to dcs

New Message Reply Date view Thread view Subject view Author view

chris (chris++at++scotch.physics.ucla.edu)
Thu, 15 Feb 1996 08:10:26 -0800


        This was so easy in C.
        dcs = (pfDCS**)pfMalloc(sizeof(pfDCS*)*arraysize,pfGetSharedArena());
        Did the job just fine.

        I can't figure out how to do this in C++. The manual (Ch 14 p.486)
says that
        pfDCS *dcs = new pfDCS;
        is the "only way" to create a libpf object. Is this true?

Chris
chris++at++scotch.physics.ucla.edu
or
mitchell++at++physics.ucla.edu


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:24 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.