Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.2K+ articles
Misc
7.7K+ articles
C++
3.7K+ articles
Strings
2.1K+ articles
STL
1.3K+ articles
CPP-Functions
619+ articles
CPP-Library
254+ articles
cpp-strings-library
46+ articles
cpp-stringstream
12+ articles
cpp-string
157+ posts
Recent Articles
Popular Articles
How to Take Multiple Line String Input in C++?
Last Updated: 23 July 2025
In C++, taking string input is a common practice but the cin is only able to read the input text till whitespace. In this article, we will discuss how to read the multiple...
read more
C++ Programs
C++
Picked
cpp-input-output
cpp-string
CPP Examples
How to Resize an Array of Strings in C++?
Last Updated: 23 July 2025
In C++, the array of strings is useful for storing many strings in the same container. Sometimes, we need to change the size of this array. In this article, we will look a...
read more
C++ Programs
C++
Picked
cpp-string
cpp-array
CPP Array and String
CPP Examples
How to Check if a Substring Exists in a Char Array in C++?
Last Updated: 23 July 2025
In C++, Char array and std::string both are used to store a sequence of characters to represent textual data. In this article, we will learn how to check if a substring ex...
read more
C++ Programs
C++
Picked
cpp-string
CPP Examples
How to Take Long String Input With Spaces in C++?
Last Updated: 23 July 2025
In C++, we often take long strings with a lot of characters as inputs with spaces but if we use cin then our input gets terminated as soon as whitespace is encountered. In...
read more
C++ Programs
C++
Picked
cpp-input-output
cpp-string
CPP Examples
How to Sort an Array of Strings Using Pointers in C++?
Last Updated: 23 July 2025
In C++, sorting an array of strings using pointers is quite different from normal sorting because here the manipulation of pointers is done directly, and then according to...
read more
C++ Programs
C++
Picked
cpp-string
cpp-array
CPP Array and String
CPP Examples
How to Remove Last Character From C++ String?
Last Updated: 23 July 2025
In C++, strings are stored as the std::string class objects. In this article, we will look at how to remove the last character from this C++ string object.For Example,Inpu...
read more
C++ Programs
C++
Picked
cpp-string
CPP Examples
How to Find and Replace All Occurrences of a Substring in a C++ String?
Last Updated: 23 July 2025
In C++, strings are sequences of characters that are used to represent textual data. In this article, we will learn how to find and replace all the occurrences of a partic...
read more
C++ Programs
C++
Picked
cpp-string
CPP Examples
How to Convert a C++ String to Uppercase?
Last Updated: 23 July 2025
Converting a string to uppercase means changing each character of the string that is in lowercase to an uppercase character. In the article, we will discuss how to convert...
read more
C++ Programs
C++
Picked
cpp-string
C++ Conversion Programs
CPP Examples
How to Check if a String is Empty in C++?
Last Updated: 23 July 2025
In C++, strings are the sequence of characters that are stored as std::string class objects. In this article, we will learn how to check if a string is empty in C++Example...
read more
C++ Programs
C++
Picked
cpp-string
CPP Examples
String C/C++ Programs
Last Updated: 23 July 2025
C program to swap two StringsC Program to Sort an array of names or stringsC Program to Check if a Given String is PalindromeC/C++ Program for Return maximum occurring cha...
read more
C++
cpp-string
C-String
C++ String Programs
C String Programs
Circular Subsequence Shift with Deque
Last Updated: 23 July 2025
Given a string S of lowercase English letters, each character is linked to one of T's unique identifiers. Specifically, character positions are associated with identifiers...
read more
DSA
subsequence
cpp-string
deque
top-dsa-problems
Convert LPCWSTR to std::string in C++
Last Updated: 28 April 2025
In C++, strings can be represented using different character encodings. LPCWSTR stands for Long Pointer to Constant Wide STRing. The LPCWSTR type represents a wide string ...
read more
C++
Picked
cpp-string
Convert String to currency format
Last Updated: 12 February 2025
Given a number N. Convert N into an Indian currency format. Rules of Indian Currency Format are:The last three digits (rightmost) remain grouped together.Beyond the last t...
read more
Strings
DSA
cpp-string
C++ String to Float/Double and Vice-Versa
Last Updated: 23 July 2025
In this article, we will learn how to convert String To Float/Double And Vice-Versa. In order to do conversion we will be using the following C++ functions:std::stof() - c...
read more
Technical Scripter
C++ Programs
C++
Picked
Technical Scripter 2022
cpp-string
Convert Hex String to Signed Integer in C++
Last Updated: 09 February 2023
This article discusses converting a hex string to a signed integer in C++. There are 5 ways to do this in C++:Using stoi() function.Using stoul() function.Using sscanf() f...
read more
Technical Scripter
C++ Programs
C++
Picked
Technical Scripter 2022
cpp-string
1
2
3
4
...
11