IMHO, pointers are frightening because you want them to.
When I first learned c/c++, I always read in tutorials and forums that they were really hard bla bla, but put some effort on learning how to use them and never had big issues...
And also, I think that is one of the reasons behind good publicity to some languages like Java when they say they dont have pointers (well, at least not on the surface, if you know what I mean), but I think those are great (pointers that is)
Why are pointers frightening?
It can be difficult for beginners... especially while learning with an API like DirectX which features type-defined pointers.
class IDirect3DVertexBuffer9*
typedef IDirect3DVertexBuffer9* LPDIRECT3DVERTEXBUFFER9
nasty
a style I've seen is using math classes such as Vector3, Matrix4x4, and Plane, etc, with reference parameters and the other classes using pointers.
class IDirect3DVertexBuffer9*
typedef IDirect3DVertexBuffer9* LPDIRECT3DVERTEXBUFFER9
nasty
a style I've seen is using math classes such as Vector3, Matrix4x4, and Plane, etc, with reference parameters and the other classes using pointers.
Quote:Original post by erjoIs it more or less scary that I understand that code?
Pointers don't get scary until you reach this:(*(void (*)( CharData *, char *))Cmds.DoFun) ( ch, Command );
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement