Skip to content

Category Archives: C++

getchar( ) is a function that takes a single input character from standard input. The major difference between getchar( ) and getc( ) is that… Read More
Getting the list of files in a directory is one of the most common operations performed by the Filesystem of an OS. The file explorer… Read More
Prerequisite: Set in C++ There are multiple ways to remove an element from the set. These are as follows: Removing an element by its value… Read More
A vector is a type of container which can store objects of similar data type. Vector acts like a dynamic array where we can insert… Read More
Prerequisite: Vector in C++ Vectors in C++ are the same as arrays with dynamic sizes having the ability to resize themselves, we can insert and… Read More
Copy_n() is the C++ function defined in <algorithm> library in STL. It helps to copy one array element to the new array. Copy_n function allows… Read More
any_of() is the C++ function defined in <algorithm> library in STL. This function determines whether even one element in a given range satisfies a specified… Read More
partition_copy is the inbuilt function defined in <algorithm> library in STL. partition_copy function duplicates the partitioned elements into the various containers given in its parameters.… Read More
Prerequisite: unordered_set() in C++ The max_bucket_count() is the built-in function defined in C++ STL. This function returns the maximum number of buckets that the Unordered… Read More
Prerequisites: Install C++17 or Newer Standard Compiler It is a common requirement of users to extract filenames and their extensions from a given path. The… Read More
Prerequisites: String in C++ Set STL in C++ A string is a collection of characters and if we are converting it into a set the… Read More
Prerequisite: Vector in C++ String in C++ Split String By Space Into Vector In C++, so we need to insert every character into a vector… Read More
Waiting for User input is common functionality in any program requiring some form of user intervention. Whether it is halting the execution to see the… Read More
Prerequisite: Unordered_set in C++ The last standard released in 2017 is C++ 17, C++20 is going to be the latest standard with many new features… Read More
strpbrk() is a string function in C++ STL that takes in two strings and finds the first occurrence of any character of string2 in string1.… Read More