Browsing Category
C++
C++ is a general purpose programming language and widely used now a days for competitive programming. It has imperative, object-oriented and generic programming features. C++ runs on lots of platform like Windows, Linux, Unix, Mac etc.
C++ strchr() Function: Complete Guide
The strchr() function finds the first occurrence of a character static_cast<char>(ch) in the byte string pointed by str. If the occurrence is found a pointer to the location of that particular character in the string is returned.…
C++ strcspn() Function: Guide on std::strcspn
The strcspn() function in C++ takes two null-terminated byte strings: dest and src as its argument and searches dest for any characters present in src.
C++ strcspn()
C++ strcspn() is a built-in function that is used for string handling.…
C++ strspn() Function: Complete Guide
The strspn() method in C++ takes two string destinations and source and gives the length of the maximum initial segment of the string destination that consists of characters that are present in the string source.
C++ strspn()
C++ strspn()…
C++ memchr() Function: Complete Guide
The memchr() function in C++ searches for the first occurrence of a character in a specified number of characters.
C++ memchr() Function
C++ memchr() is a built-in function that is used for string handling. The memchr() function is…
C++ strxfrm() Function Example | strxfrm() in C++
C++ strxfrm() library converts a given string into an implementation-defined form. It converts the string into a current locale, and then it is placed in the defined form. The transformation is done in such a way that after transformation…
C++ memset() Function Example | memset() in C++
C++ memset() is an inbuilt function that is used to copy the character to a memory block for n number of times to an object. In simpler words, it is used to fill the memory block with a particular value. It converts the value ch to unsigned…
C++ strstr() Function Example | strstr() in C++
C++ strstr() is an inbuilt string handling function that is used to find the first occurrence of a substring in a given string. It is defined in string.h header file. It is used to find the occurrence of a substring in a string. This…
C++ strtok() Function Example | strtok() in C++
C++ strtok() is an inbuilt function that is used for splitting a string based on a delimiter. C++ strtok() function works on the concept of the token. It returns the next token of the string, which is terminated by a null symbol. The…
C++ strcmp() Function Example | C++ Standard Library
C++ strcmp() is an inbuilt function that is used for string handling. It is defined in string.h header file. The strcmp() function is a predefined library which is used for comparing two strings of which null characters terminate the…
C++ Set: Standard Template Library(STL)
C++ set containers are slower than the unordered_sets containers when accessing individual elements by their key. Still, the main advantage with sets is that they allow the direct iteration on the subsets based on their order of items in…
Pair In C++: How to Write Program on C++ Pair
Pair is heterogeneous, i.e., and it allows to store a variable of different data types. Pair in C++ can be assigned, copied, and compared.
Pair In C++
Pair is a container present in the STL library of C++, which consists of two data…