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 Validate User Input in C++This article introduces how to validate user input C++. How to Create Processes With Fork in C++This article demonstrates how to create processes with fork in C++ How to Check the C++ VersionThis article discusses about C++ versions. We have also discussed how to check the version of the C++ standard used by the compiler. Difference Between DWORD and Unsigned Int in C++This article discusses DWORD and unsigned int in C++, including their definitions, importance, differences, and best practices. How to Fix Segmentation Fault in C++In this article, we'll explore these common causes of segmentation faults and learn how to fix them effectively. Double Free or Corruption Error in C++This article explores double free and corruption errors in C++, offering solutions for better memory management. How to Represent the Deck of Cards in C++ ArrayThis article presents a comprehensive discussion on the deck of cards representation in C++ array. How to Detect Keypress in Windows Using C++This article serves as a brief guide for handling keypress in the Windows application using C++. How to Swap Two Numbers Using Pointers in C++The swap pointer operator is denoted by two asterisks. It takes two operands and assigns them to each other's respective locations. The left-hand operand is given to the right-hand operand's location, and vice versa. 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++. Use of 128-Bit Integer in C++This tutorial discusses 128-bit integer in C++, its importance and possible alternatives. 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 Convert Char Array to Int in C++This article demonstrates ways to convert a char array to int type in C++. How to Wait for User Input in C++This article introduces various methods to wait for user input in C++.