C++

Doubly linked list with class templates (Part II)

In the first part of this article, we saw the class templates that will handle our doubly linked list. Now, let’s see some examples on how to use them! In the complete ...

Read More »

Doubly linked list with class templates (Part I)

In this article I’m going to show you an example with an implementation of a doubly linked list using class templates in C++. For a better understanding of this article, the reader ...

Read More »

Doubly linked lists in C++ (Part II)

In the first part of this article, I made an introduction to the doubly linked lists and I talked about methods to insert nodes. Let’s now see methods for removing nodes. Removing ...

Read More »

Doubly linked lists in C++ (Part I)

In a previous article – “Singly linked lists in C++ (Part I)” – I made an introduction to lists in C++ and singly linked lists. On this article, I’m going to talk ...

Read More »

Function templates in C++

In a previous article, I talked about a class template in C++. Now, I’m going to talk about function templates. A function template is very similar to a class template, allowing the ...

Read More »

Class template in C++

The template declaration is C++ allows us to define generic classes and functions. In the case of a class template, we can define classes where we have properties that can assume any ...

Read More »

Singly linked lists in C++ (Part III)

 In the first and second parts of this article, we saw the definition of singly linked lists, methods for inserting, removing and listing nodes and one example with a list with nodes ...

Read More »

Singly linked lists in C++ (Part II)

In the first part of this article, we saw the definition of singly linked lists and methods for inserting nodes. Now, let’s see methods for removing. Removing at the head In the ...

Read More »

Singly linked lists in C++ (Part I)

Linked lists are data structures that consist in a set of nodes linked each other. There are different types of linked lists, such as: Singly linked lists, doubly linked lists and circular ...

Read More »

Dynamic arrays with structs in C++

In previous posts (“Using pointers in C / C++” and “malloc and realloc functions in C / C++“) I talked about pointers and dynamic arrays in C/C++. On this article I’m going ...

Read More »