Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ pointer vs. non-pointer

Name: Anonymous 2010-05-22 19:54

Sup /prog/

C++, if I make my own class, lets just say class cShitHead

cShitHead dave * new cShitHead( "dave" );
dave->PrintName();

or

cShitHead dave( "dave" );
dave.PrintName();

I myself like the pointer notation better. However, which one is more efficient and better on memory? and why?

Name: Anonymous 2010-05-23 3:12

>>39
I wish!

>>38
Yes, that was definitely a more thoughtful reply than >>36.  In any case he should keep his shit straight unless he is explicitly talking about a particular implementation.

Name: Anonymous 2010-05-23 6:34

More than 40 replies in such shitty thread? This is worse than /a/

Name: Anonymous 2010-05-23 8:30

>>42
Yeah, in /a/ no one keeps a decent conversation going for more than ten or fifteen.

Name: Anonymous 2011-02-04 15:16

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List