Posts from C++

Count total number of words in a text file in C++

By Tanmaay Kankaria

In this article, we will discuss with a program, how we can count the total number of words in a text file in C++ language. You can use a text file of any name, just make sure that.... 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

unordered_set find() function in C++

By Brijesh Kumar

In this tutorial, we will learn how to use unordered_set find() function in C++. Before directly moving to the unordered_set find() in C++. Let’s understand first unordered_s.... Read More

multimap find() in C++

By Brijesh Kumar

In this tutorial, we will learn how to use multimap find() in C++. Before directly moving to multimap find() in C++, lets first understand what is multimap in C++. Multimap is simi.... Read More

Circular Linked List in C++

By Ankita Khan

In this tutorial, we will learn about Circular Linked List in C++. Before learning about circular linked lists, let us know about a linked list. It is a linear data structure that .... 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