Posts from C++

String push_back() function in C++

By Rishabh Thukral

In this tutorial, we will learn about the string push_back() to add a new character at the end of the string function in C++. So, continue reading it… push_back() function a.... Read More

Replace comma with a new line in a text file using C++

By Ankita Khan

In this tutorial, we will learn how to replace the comma with a new line in a text file using C++. Before proceeding to the solution, let us learn about dealing with text files in.... Read More

Check if strings are rotations of each other or not in C++

By Ayush Tripathi

Hello, guys in this tutorial we will learn how to check if strings are rotation of each other or not in C++. Example 1 input string1="codespeedy" string2="speedycode" Output true E.... Read More

Height of a binary tree in C++

By Meghana Thatikonda

In this tutorial, we will learn what a binary tree is, what is its height and also how to implement it using C++. A binary tree is a finite set of elements(can be empty) from which.... Read More

Sorting of partially or k sorted array in C++

By Ayush Tripathi

In this tutorial, we learn how to sort partially or nearly sorted array in  C++. We have given array in which each element is at most k position away from its sorted position. for.... Read More

TRAIN TICKET CREATOR IN C++

By Siddharth Shankar Debata

Today in this tutorial we will learn how to generate an Indian Railways Reservation Ticket using the C++ programming language. We will create the ticket using C++ graphics.h librar.... Read More

round() function in C++

By Ranjeet V

In this tutorial, we will learn about the round() function in C++. This function is defined in cmath header in C++. We will be using it in our C++ program to round a given number w.... Read More

div() function in C++

By Ranjeet V

This tutorial illustrates the working of the div() function in C++. We can use this function to find the quotient and remainder of a division. The div() function is defined in the .... Read More

Related Posts