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

Difference Between Const Int and Int Const in C++In this article, we will see how const int is different from int const. We will discuss this in terms of simple variables as well as pointers. We will also discuss the basics of the constant keyword of C++ along with various working examples. The const Keyword in Function Declaration of Classes in C++This article will explain to you all about the const member functions of C++. You will learn about its use and how it differs from a usual member function. We will also learn how a const member function is used with const and non-const objects. Also, we will see the exceptional case arising from using a mutable keyword with a data member. Declaration and Uses of unique_ptr in C++In this article, we will learn about the declaration and use of a unique_ptr in C++. We will learn about the various declarations and the features that the unique_ptr provides. As we go over the features, we will also see how these pointers are different from raw pointers and what makes them useful. How to Find Memory Leaks in C++In this article, we will understand about the memory leaks in the C++ programming language. C++ Profiling ToolsThis tutorial demonstrates some of the best profilers for C++. How to Pass Pointer by Reference in C++This article introduces how to pass pointer by reference in C++ Operator Precedence and Associativity in C++This article discusses about C++ operator precedence and associativity. How to Copy Constructor of Linked List in C++The article explore linked lists, data structures, copy constructors, and methods in C++. Magic Square Problem in C++This article discusses implementing the magic square problem using C++. How to Copy Constructor for Singly Linked List in C++This is a compact article to write a copy constructor with singly linked lists in C++. How to Implement Iterator for a Doubly Linked List in C++This tutorial clarifies how to implement the iterator for a doubly linked list in C++. How to Convert Char Array to String in C++This article introduces multiple ways to convert char array to string in C++. How to Wait for User Input in C++This article introduces various methods to wait for user input in C++. How to Return a Vector From a Function in C++This article introduces how to return a vector from function efficiently in C++. How to Compare Two Strings Ignoring the Case in C++This article introduces how to compare two strings while ignoring the case in C++. How to Create Array of Structs in C++This article introduces how to create an array of structs in C++. How to Initialize Vector of Structs in C++This article introduces how to initialize a vector of structs in C++. How to Resize Array in C++This article introduces various methods to resize arrays in C++, including built-in functions like resize and erase for vectors, custom-defined functions tailored to specific needs, and dynamic memory allocation for manual control. How to Print Linked List in C++This article demonstrates how to print a linked list in C++. How to Get File Size in C++This article introduces the different approaches to get the file size in C++. How to Append Vector to Vector in C++This article demonstrates how to append a vector to another vector in C++. How to Shift Elements in Array in C++This article demonstrates various methods to shift array elements in C++. How to Read File Word by Word in C++This article introduces how to read a file word by word in C++. How to Pass Vector by Reference in C++This article introduces how to pass vector by reference in C++.