[Solved] Confused on purpose/meaning of code in C++ struct declaration
[ad_1] The member function that you have defined (node(…)) is a constructor and lets the compiler know what to do when you create an object on type node. For example, in your code, you use this statement in your push function: t = new node(a, t);. Compiler has to know how to create a new … Read more