Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Mathematical
7.8K+ articles
C++
4.3K+ articles
Competitive Programming
3.3K+ articles
Strings
3.3K+ articles
C++ Programs
2.4K+ articles
Searching
1.7K+ articles
Hash
1.3K+ articles
STL
1.3K+ articles
cpp-strings
59 posts
Recent Articles
Popular Articles
How to Do Case-Insensitive Search for a Substring in C++?
Last Updated: 21 February 2024
A substring of a string is a contiguous sequence of characters within that string. In simpler terms, a substring is a part of a larger string that appears consecutively in...
read more
C++ Programs
C++
Picked
cpp-string
cpp-strings
CPP Examples
How to Access Individual Characters in a C++ String?
Last Updated: 21 February 2024
C++ has in its definition a way to represent asequence of characters as an object of the class. This class is called std:: string. The string class stores the characters a...
read more
C++ Programs
C++
Picked
cpp-strings
CPP Examples
How to Convert Hex String to Byte Array in C++?
Last Updated: 04 March 2024
A Hex String is a combination of thedigits 0-9andcharacters A-F and a byte array is an array used to storebytedata types only. The default value of each element of the byt...
read more
C++ Programs
C++
Picked
cpp-array
cpp-strings
CPP Examples
How to Split a C++ String into a Vector of Substrings?
Last Updated: 01 March 2024
In C++, splitting a string into a vector of substrings means we have to split the given string into a substring based on a given delimiter and store each substring in a ve...
read more
C++ Programs
C++
Picked
cpp-vector
cpp-strings
CPP Examples
How to Split a String into an Array in C++?
Last Updated: 04 March 2024
In C++, splitting a string into an array of substrings means we have to parse the given string based on a delimiter and store each substring in an array. In this article, ...
read more
C++ Programs
C++
Picked
cpp-string
cpp-array
substring
cpp-strings
CPP Examples
How to Add Leading Zeros to a C++ String?
Last Updated: 05 March 2024
In C++, a string data structure is used to store the sequence of characters. These characters can be letters, symbols, or numbers. In this article, we will learn how to ad...
read more
C++ Programs
C++
Picked
cpp-strings
CPP Examples
How to Handle Multiple String Inputs with Spaces in C++?
Last Updated: 18 March 2024
In C++, strings are a sequence of characters that might contain spaces in many casesbut we can read only the input text till whitespace using cin. In this article, we will...
read more
C++ Programs
C++
Picked
cpp-input-output
cpp-strings
CPP Examples
How to Create a Random Alpha-Numeric String in C++?
Last Updated: 18 March 2024
Creating a random alpha-numeric string in C++ means generating random characters from the set of alphanumeric characters (i.e., ‘A’-‘Z’, ‘a’-‘z’, and ‘0’-‘9’) and appendin...
read more
C++ Programs
C++
Picked
cpp-strings
cpp-random
CPP Examples
How to Declare Pointer to an Array of Strings in C++?
Last Updated: 05 March 2024
In C++, an array of a string is used to store multiple strings in contiguous memory locations and is commonly used when working with collections of text data. In this arti...
read more
C++ Programs
C++
Picked
cpp-array
cpp-pointer
cpp-strings
CPP Examples
Case-Insensitive String Comparison in C++
Last Updated: 18 March 2024
In C++, strings are sequences of characters that are used to store text data which can be in both uppercase and lowercase format. In this article, we will learn how we can...
read more
C++
Picked
C++-Misc C++
cpp-strings
C Pattern Programs
CPP Examples
How to Split a String Based on Empty/Blank Lines in C++?
Last Updated: 19 March 2024
In C++, strings are objects that represent a sequence of characters and we can break this string into a new line using the '\n' escape sequence. In this article, we will l...
read more
C++ Programs
C++
Picked
cpp-string
cpp-strings
CPP Examples
Array of Pointers to Strings in C++
Last Updated: 21 March 2024
In C++, an array is a homogeneous collection of data that is stored in a contiguous memory location. We can store almost all types of data as array elements. In this artic...
read more
C++ Programs
C++
Picked
cpp-string
cpp-array
cpp-pointer
cpp-strings
CPP Examples
How to Convert String to Date in C++?
Last Updated: 22 March 2024
In C++, we generally store the date and time data in the form of the object of type std::tm. Sometimes, this data is stored inside a string object and we need to convert i...
read more
C++ Programs
C++
cpp-string
date-time-program
cpp-strings
How to Convert wstring to double in C++
Last Updated: 27 June 2024
In C++,std::wstringis a type of string where each character is of a wide character type.Converting wstring to a double in C++ can be a common requirement especially when d...
read more
C++ Programs
C++
cpp-strings
CPP Examples
Vector of Strings in C++
Last Updated: 23 October 2024
In C++, a vector of strings is a std::vector container that stores multiple strings. It is useful when you need to store a collection of string data in a single container ...
read more
C++
STL
cpp-vector
cpp-strings
1
2
3
4
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !