Practical solutions

C++ Howtos How-To Guides

Solve the problem. Keep building. Collection of C++ how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

How to Create an Array of Strings in C++This article demonstrates how to create an array of strings in C++. How to Use the std::map::find Function in C++This article introduces the std::map::find function from the Standard Template Library in C++. How to Insert New Elements in an STL Map in C++This article demonstrates how to insert new elements into an STL map in C++. How to Implement a Circular Linked List Data Structure in C++This article demonstrates how to implement a circular linked list data structure in C++. How to Use the std::mutex Synchronization Primitive in C++This article explains how to utilize std::mutext synchronization primitive in C++ How to Use Exponential Functions of STL in C++This article explains differences between various exponential functions provided in C++ STL How to Implement a Queue Data Structure Using Linked List in C++This article demonstrates how to implement a queue data structure using linked list in C++ How to Delete a Node From Binary Search Tree in C++This article demonstrates how to implement a function that deletes a node in binary search tree data structure C++ How to Implement Circular Array in C++This article explains how to implement circular array data structure in C++ How to Read Text File Into 2-D Array in C++This article explains how you can read text files into 2-D arrays in C++. It also highlights fstream library, along with vectors, and how to read text input into 2-D vectors. How to Understand Smart Pointers in C++This article discusses the smart pointers in C++, its uses, types, and implementations. How to Remove Last Character From a String in C++The article discusses four different methods for removing the last character from a string in C++. We used pop_back(), substr(), erase(), resize(), and index access functions for removing the last character from a string. How to User Input Array in Function in C++This article discusses methods to take input from user into the array in a function in C++. How to Use the this Pointer in C++This tutorial briefly introduces this pointer and its need and uses in C++. It further explains the difference between this and *this with the help of examples. How to Add Message to Assert in C++This tutorial demonstrates C++ assert with message. How to Dereference Pointers in C++This tutorial provides a brief discussion on how to dereference a pointer in C++. How to Compile and Run C++ 11 Codes in Dev C++This article is a brief guide for compiling and running C++ 11 codes using Dev C++ compiler. How to Convert to SHA256 in C++This article focuses on the concept of hashing and the SHA256 algorithm. It includes a detailed explanation of the SHA256 algorithm along with code snippets in C++ to make understanding easier. At the end of the article, the whole C++ program is provided. How to Get the MD5 Hash of a File in C++This tutorial demonstrates the working of MD5 algorithm that the MD5 message-digest is a cryptographic protocol which is used for authentication processes in the digital world. It is based on the hashing function for verification of files or text. The prominent 4 steps of MD5 algorithm are padding bits, append length, initialize MB buffer, and processing each block. How to Implement the if Statement With Multiple Conditions in C++This article discusses the usage of if statements with multiple conditions in C++ using relevant examples. How to Check if an Array Contains an Element in C++In this article, we will discuss the various approaches to check if an array contains an element in C++. We will see how a simple loop can be used to do this. Also, we will be using some algorithms and functions from the C++ standard library that can help us do the same. How to Fix the Multiple Definitions of a Function Error in C++This article is about the solution to the error of multiple function definition in C++. How to Create a Lookup Table in C++This article focuses on explaining how look up tables are created and its uses in different scenarios. Three code examples are provided to make understanding easier, with code snippets to understand the code in detailed manner. How to Compare String and Character in C++An article about the use of string and char in C++ and their comparison.