Abstract Classes - Polymorphism

  • + 0 comments

    In c++14, compiler warns about the initialising order - prev is initialised before next... and editor doesn't allow to change the code to fix that.

    struct Node{ Node* next; Node* prev; int value; int key; Node(Node* p, Node* n, int k, int val):prev(p),next(n),key(k),value(val){}; Node(int k, int val):prev(NULL),next(NULL),key(k),value(val){}; };