In any serious program you write sooner or later you will have the need for a Collection of data. As a C Programmer you may want to know if there are Standard Collections that are available to...
Posts by Marco Lieblang
Sometimes you need a container that stores related pairs of values. You also want to be able to access the pairs of values relatively flexibly. In C there is not a container like this so I...
Arrays in C are fixed in size. In order to use a Dynamic Array in C one has to allocate memory manually and later free it to prevent memory leaks. Furthermore Arrays cannot be passed by reference to...
If you want to reverse the order of a list, trace back memory jumps or implement undoing commands you may want to use a stack. A stack is part of the STL in C++ as std::stack<T>,...
If you have to schedule tasks by incoming order, print some jobs or buffer some messages you might want to use a queue. A queue is part of the STL in C++ as std::queue<T>,...
When you need a collection or container with more flexibility than an Array provides, but also need to be memory efficient, then Linked Lists . Linked Lists are part of the STL in C++ as...