Can anyone help me a question on linked list of c++?
how to setup the default value in a linked list?
I tried to insert a value(for example 2) into the first node, put them into the default constructor. It works when there is no input. But when inserting other values, the first node of the linked list is always the value of 2. How to solve this problem?