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 Boolean Functions in C++This article introduces how to create boolean functions in C++ How to Shuffle Vector in C++This article introduces how to shuffle a vector in C++ How to Read File Into String in C++This article demonstrates how to read file into string in C++. How to Handle SIGABRT Signal in C++This article introduces how to handle the SIGABRT signal in C++ How to Get Current Directory in C++This article demonstrates how to get the current directory in C++ How to Add Element to Vector of Pairs in C++This article demonstrates how to add an element to a vector of pairs in C++ How to Use Timer in C++This article introduces how to use a timer in C++ How to Use switch Statement in C++This article demonstrates how to use switch statement in C++ How to Use Private vs Protected Class Members in C++This article introduces how to use private vs protected class members correctly in C++ How to Use malloc vs new Allocators in C++This article demonstrates how to use malloc vs new allocators in C++ How to Use Bitmask in C++This article introduces how to use bitmask in C++ How to Right Justify Output in C++This article introduces how to right justify output in C++ How to Return Pointer to Array in C++This article demonstrates how to return a pointer to an array from a function in C++. How to Find Set Intersection in C++This article demonstrates how to find set intersection in C++ How to Declare Multiline String in C++This article demonstrates how to declare a multiline string in C++. How to Check if String Is Palindrome in C++This article demonstrates how to check if a string is a palindrome in C++ How to Check if String Is Empty in C++This article introduces how to check if a string is empty in C++ How to Calculate Dot Product of Two Vectors in C++This article introduces how to calculate the dot product of two vectors in C++. How to Use the deque Container in C++This article introduces how to use std::deque container in C++ How to Get Environment Variable in C++This article demonstrates how to get environment variable in C++ How to Split String by Space in C++This article introduces how to split string by space in C++ How to Sort Strings Alphabetically in C++This article introduces how to sort strings alphabetically in C++ How to Sort Map by Value in C++This article introduces how to sort map by values in C++ How to Return a Pointer in C++This article demonstrates how to return a pointer from function in C++