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-22 21:45

>>17
Even Win32 isn't stuck with a 4 GB RAM limit anymore, and you're an idiot if you think counting pointers is where you're going to get any significant improvements in memory usage.

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