Examples of working with a linear linked list in C and C++