Posts from C++

Eulerian Path and Circuit for undirected graphs in C++

By Keshav J

In this tute, we will discuss Eulerian Path and Circuit for undirected graphs in C++. Many of us would’ve heard of this somewhere when learning math concepts. What is an undi.... Read More

Modular Exponentiation (Power in Modular Arithmetic) in C++

By Keshav J

In this tute, we will discuss Modular Exponentiation (Power in Modular Arithmetic) in C++. Given 3 integers a, b, and m, find (ab) % m. Let’s see how to calculate (ab) % m i.... Read More

Write a program to print Diamond pattern using C++

By Vishal Kumar

In this tutorial, we are going to learn how to write a program to print a diamond pattern in C++. The pattern can be of any size, it will depend on the number of rows entered by a .... Read More

generate() and generate_n() functions in C++

By Ranjeet V

In this tutorial, we will be learning the working of generate() and generate_n() functions in C++. These two functions are defined in std::algorithm header and are used to generate.... Read More

How to compute Manhattan Distance between two points in C++

By Prajwal Khairnar

In this tutorial, we will be learning how to compute Manhattan Distance between two points in C++. Manhattan Distance is a very simple distance between two points in a Cartesian pl.... Read More

Generator function in C++

By Siddharth Shankar Debata

In this tutorial, we will learn about the generator function in C++. A generator function is used to produce values having a particular sequence called a series. The series is prod.... Read More

How to print calendar for a specific year in C++

By Prajwal Khairnar

This tutorial will help you to learn how to print calendar for a specific year in C++. The user can get the whole calendar by just mentioning the required year. Feel free to ask qu.... Read More

strstr() function in C++

By Ranjeet V

As it is quite evident from the name that strstr() function in C++ is a function that does some string related tasks. And like most of the built-in string functions, this function .... Read More

Related Posts