Can I create a new struct on the heap without defining a constructor?
问题 I understand that there are very few differences between structs and classes in c++ (two?). Be that as it may, I've been instructed to use structs to define simple little things like nodes that might not need member functions (despite the fact that I could technically include include member functions). For instance I might define a node as a private member of a linked list class as follows: class LinkedList { struct Node { MyObject *data; Node *next; }; Node *list; }; In this case, however,