This is a simple linked list example in C++.