Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 1
    1) The typedefing of the pointer here is in my opinion the work of cranks that don't like the language syntax. 2) There is no difference. 3) Names in global namespace beginning with an underscore are reserved. Commented Mar 15, 2016 at 13:02
  • 5
    Why is this tagged C when you are using new? If this is just for C++ then the declaration does not follow the C++ convention for declaring and using classes. Commented Mar 15, 2016 at 13:03
  • 1
    actually I dont see the point of using a typedef here at all. imho it is much simpler and more clear to write struct Point3d { float x,y,z;} there is no need for a typedef Commented Mar 15, 2016 at 13:03
  • 1
    You write a lot of C code before, right ? So, forget everything and learn C++ like a new language Commented Mar 15, 2016 at 13:04
  • 1
    Related: Difference between 'struct' and 'typedef struct' in C++? Commented Mar 15, 2016 at 13:10