Posts from C++

Stack implementation using Linked List in C++

By Akash Dileep

In this tutorial, we are going to see how to implement a stack using a linked list in C++. A stack is an ordered collection of the items where addition of new items and the removal.... Read More

Message passing in C++

By Shubham Giri

Message Passing the Topic itself gives a meaning “Passing something”. So in this topic, we are gonna learn What is Message Passing and how it works in C++. From the ba.... Read More

const_cast in C++

By Harsh Gupta

In this tutorial, we will learn const_cast in C++ with examples. There are 4 types of casting operators as follows: 1. const_cast 2. static_cast 3. dynamic_cast 4. reinterpret_cast.... Read More

Matrix Diagonal Sum in C++

By Palani M

In this tutorial, we will be writing a program to calculate sum of the diagonal elements of a matrix in C++. Diagonal Matrix Sum in C++ This question was a part of the Leetcode Biw.... Read More

upper_bound() in C++

By Keshav J

In this tute, we will discuss std::upper_bound() in C++. There are many ways to find the next greater element of a value in a sorted array. The first method is to run a linear loop.... Read More

Construct the binary tree in C++ – you are given two traversal sequences

By Abhisikta Chakraborty

Once In this tutorial, we will briefly discuss the pre-order and in-order traversal of a binary tree. We then go on to construct the binary tree from the two traversal sequences in.... Read More

Find index/position of element in vector in C++

By Meghana Thatikonda

In this tutorial, we are going to learn how to find the index or position of an element in the vector with its implementation in C++. Vectors are like dynamic arrays. They can gro.... Read More

Methods vs Functions in C++ with Examples

By Amit Raja Kalidindi

In this tutorial, we are going to learn about the aspects that make methods different from functions in C++. A function contains a set of instructions that are used to perform a sp.... Read More

Related Posts