Posts from C++

Check if a string starts with a specific substring in C++

By Ayush Tripathi

Hello, guys in this tutorial, we will learn how to check if a string starts with specific substring in C++. In input, we have two strings let say, s1 and s2. We will check if s1 st.... Read More

How to remove a particular character from a string in C++

By Prajwal Khairnar

This tutorial aims at a string operation which is to remove a particular character from the string in C++ as desired by the user. The users may need to use this concept to correct .... Read More

C++ program to find the triplets with a given sum in an array

By Ankita Khan

In this tutorial, we will learn how to write a simple C++ program to find the triplets with a given sum in an array. Before proceeding to the solution, let us understand the proble.... Read More

How to Sort a Vector of Pairs in C++

By Rishabh Thukral

In this tutorial, we will learn How to Sort a vector of pairs in C++. Sort the vector of pairs in the Ascending Order in C++ This type of sorting can be done using the sort() funct.... Read More

Implement Vector as a Stack in C++

By Rishabh Thukral

In this tutorial,  we will learn how to Implement Vector as a stack in C++. Let us begin the tutorial with some basic knowledge. What is a Vector in C++? Vectors are just like a.... Read More

Access Elements from a Vector in C++

By Rishabh Thukral

In this tutorial, we will learn how to access an element from a vector in C++. Various ways to access an element from a vector in C++ There are different ways to access an element .... Read More

Explaining the use of extern “C” in C++

By Tanmaay Kankaria

The extern keyword is used to define global variables. Global variables are also known as external variables. They are defined outside the function. The value of these variables ca.... Read More

Difference between std::quick_exit and std::abort in C++

By Brijesh Kumar

In this tutorial, you will learn the difference between std::quick_exit and std::abort in C++. Before understanding the difference between std::quick_exit() and std::abort() in C++.... Read More

Related Posts