Posts from C++

How to use range based for loop in C++?

By Gorakh Chavan

In this post, we will learn about how range-based for loop in C++ works instead of traditional for loops. This range-based loop concept is in works from C++ 11 release. It iterates.... Read More

Sort stack using temporary Stacks in C++

By Tanu Kumari

In this tutorial of CodeSpeedy, we will learn how to sort a stack using temp Stacks in C++. We will learn to write the program in C++ in a very cool and easy way. If you don’.... Read More

How to use std::remove_const in C ++

By Gorakh Chavan

In this post, we are going to learn about the standard function defined inside STL(standard template library) from <type_traits> header fileĀ std::remove_const. The std::remo.... Read More

Iterator library in C++ STL

By Muskaan Singla

In this article, we will learn about the Iterator library in C++ STL. Iterators are just like pointers, with the help of which we can access and traverse our data. We can also modi.... Read More

Color spaces in OpenCV in C++

By Muskaan Singla

In this tutorial, we will learn about color spaces in OpenCV in C++. Let us start by getting answers to some basic questions which make the foundation of this topic. What is a Colo.... Read More

Given two unsorted arrays, find pairs whose sum is x in C++

By Muskaan Singla

We are given a problem statement that goes as: Given two unsorted arrays, find all pairs whose sum is x in C++. Basically, we are given a number X and we have to find pairs in the .... Read More

Significant Figures in C++

By Muskaan Singla

In this post, we will learn about significant figures in C++. Significant, as the name suggests means the number of digits that are actually meaningful to us. For example, the numb.... Read More

Searching in Array in C++

By Raghav Sharma

In this tutorial, we are going to learn about Searching in Array in C++. We’ll be using an algorithm called Linear Search for this purpose. Linear search is a basic and simpl.... Read More