These are chat archives for chat-rooms/programming

1st
Nov 2017
rita2015
@rita2015
Nov 01 2017 09:07
@rita2015
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?