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

The auto Keyword in C++ Used for Type InferenceThis article talks about auto keyword in C++ which is used for type inference. Logical XOR in C++This article talks about how to implement logical XOR in C++. Const Reference vs Normal Parameter Passing in C++This article talks about difference between const reference and normal parameter passing in C++. The switch Statements in C++This article talks about switch statements in C++ and some of it's special properties. The or Operator in C++This article talks about OR operator in C++. Bit Shift Operator in C++This article discusses about left and right bit shift operators in C++ with relevant examples. We have also discussed how can bit shift operators in C++ be implemented. Arithmetic Operations on Fractions Using Constructor in C++This article shows the working principles of fractions using constructors in C++. The program explained here uses constructors and few member methods to pass value among each other and provide the final result to the user. Printing Boolean Values in C++This article talks about printing textual representation of Boolean values in C++. Inline Functions in C++This article talks about inline functions in C++, how to implement them, and the advantages and disadvantages of using them. Undefined Reference to Class::Function() in C++A brief tutorial to resolve the linker error of Undefined References in C++. Double Ampersand in C++This tutorial introduces what double ampersand means in C++. Struct Inheritance in C++This tutorial demonstrates about struct and struct inheritance in C++ as well as the different types of inheritance. Structs are similar to classes in object oriented programming but classes are more secure as compare to structs in C++. A Declaration Shadows a Parameter Error in C++This tutorial demonstrates what is access specifiers in C++ and what is a declaration shadows a parameter error in C++. Dereference an Iterator in C++This tutorial demonstrates about iterators and dereferencing an iterator in C++. Iterators are like pointers which points to the elements of a data structure. You can iterate over them without knowing the indices of the elements inside. Virtual Functions in C++This article talks about the virtual functions in C++. Serial Port Connection in C++This article is an easy tutorial to read and write some data to serial ports in C++. Reflection in C++A brief pointer to implement reflections in C++. Class Template Inheritance in C++This article serves as a guide for implementing inheritance using class templates in C++. Recursive Fibonacci in C++A small tutorial explaining how to implement Fibonacci series using recursive function in C++. Linked List Using Templates in C++This article explains the various steps involved in creating a linked list in C++ using templates. The working program demonstrates a linked list that uses templates to escape the need to declare a datatype whenever a new variable is created. Maximum and Minimum Value From a Vector in C++In this article, we will learn how we can get the minimum and maximum value from a vector in C++. We'll use a for loop to do that and will also look at some library functions like std::min_element, std::max_element, and std::minmax_element. C++ Get Variable TypeThe article includes two different methods to find the type of a variable in C++. One of the methods is to use the typeid operator whereas the other one is the decltype operator. Too Many Arguments to Function Error in C++This article discusses the too many arguments to function error in C++. All the important points about this error have been discussed so far such as why this error occurs in a program and how to resolve it. The new Keyword and No Match for Operator Error in C++A brief article on the use of the new keyword in C++ and the solution to the common mistakes while using it.