Posts from C++

Search an element in Linked List

By Astha Awasthi

In this C++ tutorial, we are going to discuss how to search an element in a singly Linked list in C++. What is Linked List? Linked list is a linear data structure in which elements.... Read More

Print the next greater element in C++

By Manisha Rathore

In this tutorial, we will learn how to print the next greater element C++. Then, we have an array and we have to print the next greater element of each element. For Example : Given.... Read More

Merge 3 arrays in sorted order in C++

By Sakshi Gupta

In this tutorial, we will learn how to merge 3 arrays in sorted order in C++. Below is an interesting solution based on min-heap implemented by using a priority queue. For example-.... Read More

Remove duplicate from a linked list in C++

By Sakshi Gupta

In this tutorial, we will learn how to remove duplicate from a linked list in c++. For example- 2 4 5 6 2 3 4 After removing duplicate elements: 2 4 5 6 3 How to remove duplicate f.... Read More

Find the second smallest number in an integer array in C++

By Yash Shakya

This C++ program is able to find the second smallest number in an integer array in C++ by using some suitable conditions. This problem is based on the concept of multi dimension a.... Read More

Create a Simple calculator in C++

By Sakshi Gupta

In this tutorial, we will see the basic implementation of a simple calculator in C++. It includes all the basic operations: Addition(+) Subtraction(-) Multiplication(*) Division(/).... Read More

Constructors in C++ – Features and Types

By Siddharth Chhabra

In this tutorial, we are going to understand about features of constructors, types of constructors, syntax with some examples in C++. Constructor and its features: Constructors are.... Read More

How to add hours to current time in C++

By Muskan Agarwal

This tutorial will teach how to add hours to current time in C++. What we need to do is to first, get the current time (using inbuilt functions ) and then add the number of hours w.... Read More

Related Posts