Posts by Rishabh Thukral

Author Biographical Info: Not available

String replace() function in C++

By Rishabh Thukral

In this tutorial, we will learn about the string replace() function in C++ with a suitable example. So continue reading it… The replace() function replaces the particular p.... Read More

Math nexttoward() function in C++

By Rishabh Thukral

In this tutorial, we will learn about how to use the nexttoward() function in C++. So continue through this article… nexttoward() function in C++ The nexttoward() function t.... Read More

Remove the Last Line from a Text File in C++

By Rishabh Thukral

In this tutorial, we will learn about how to Remove the Last Line from a Text File in C++. Opening a File fstream file; file.open("abc.txt",ios::in); //'in' is a type of file mode.... Read More

Remove the Blank Lines from a Text File in C++

By Rishabh Thukral

In this tutorial, we will learn about How to remove the blank lines from a text file in C++. The text file keeps data in ASCII characters. In-text files, There is a special charac.... Read More

Deque cbegin( ) in C++

By Rishabh Thukral

In this tutorial, we will learn about Deque cbegin() in C++. Deque stands for Double Ended Queues which are sequence containers where you can insert or delete elements from both t.... 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