Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
160 Days of DSA (Win T-Shirt!)
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
C++
4.1k+ articles
Strings
3.2k+ articles
C++ Programs
2.5k+ articles
C Language
1.8k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
CPP-Functions
600+ articles
CPP-Library
240+ articles
cpp-strings-library
45 articles
cpp-string
140+ posts
Popular Articles
Recent Articles
string find() in C++
Last Updated: 24 January 2025
In C++, string find() is a library function used to find the first occurrence of a sub-string in the given string. Let's take a look at a si
...read more
cpp-string
C++
cpp-strings-library
Picked
Comparing two strings in C++
Last Updated: 23 June 2022
Given two strings, how to check if the two strings are equal or not.Examples:Input : ABCD, XYZOutput : ABCD is not equal to XYZ XYZ
...read more
Strings
cpp-string
DSA
Convert String to Char Array in C++
Last Updated: 11 January 2025
In C++, we usually represent text data using the std::string object. But in some cases, we may need to convert a std::string to a character
...read more
cpp-string
C++
C++ Programs
C++ Conversion Programs
CPP Examples
Similar Topics
DSA
22.3k+ articles
C++
4.1k+ articles
Strings
3.2k+ articles
C++ Programs
2.5k+ articles
C Language
1.8k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
CPP-Functions
600+ articles
CPP-Library
240+ articles
cpp-strings-library
45+ articles
Substring in C++
Last Updated: 11 January 2025
The substring function is used for handling string operations like strcat(), append(), etc. It generates a new string with its value initial
...read more
CPP-Library
cpp-string
C Language
C++
C-String
C-Library
stringstream in C++ and its Applications
Last Updated: 11 January 2025
A stringstream associates a string object with a stream allowing you to read from the string as if it were a stream (like cin). To use strin
...read more
cpp-string
C++
cpp-stringstream
std::string::compare() in C++
Last Updated: 11 January 2025
The string::compare() function in C++ is used to compare a string or the part of string with another string or substring. It is the member f
...read more
STL
cpp-string
CPP-Functions
C++
cpp-strings-library
getline (string) in C++
Last Updated: 11 January 2025
The C++ getline() is a standard library function that is used to read a string or a line from an input stream. It is a part of the string he
...read more
cpp-string
C++
Conversion of whole String to uppercase or lowercase using STL in C++
Last Updated: 10 January 2023
Given a string, convert the whole string to uppercase or lowercase using STL in C++.Examples:For uppercase conversionInput: s = "String"Outp
...read more
Strings
STL
cpp-string
School Programming
C++ Basic Programs
DSA
C++ String Programs
Array of Strings in C++
Last Updated: 26 February 2025
In C++, a string is sequence of characters that is used to store textual information. Internally, it is implemented as a dynamic array of ch
...read more
cpp-string
cpp-array
cpp-vector
C++
CPP Array and String
strtok() and strtok_r() functions in C with examples
Last Updated: 07 June 2023
C provides two functions strtok() and strtok_r() for splitting a string by some delimiter. Splitting a string is a very common task. For exa
...read more
Technical Scripter
CPP-Library
cpp-string
C++
std::string class in C++
Last Updated: 11 January 2025
C++ has in its definition a way to represent a sequence of characters as an object of the class. This class is called std:: string. The stri
...read more
STL
cpp-string
C Language
C++
cpp-strings-library
DSA
Converting Number to String in C++
Last Updated: 11 January 2025
In C++, converting integers to strings or converting numbers to strings or vice-versa is actually a big paradigm shift in itself. In general
...read more
CPP-Library
cpp-string
C Language
C++
cpp-stringstream
Convert String to int in C++
Last Updated: 11 October 2024
Converting a string to int is one of the most frequently encountered tasks in C++. As both string and int are not in the same object hierarc
...read more
CPP-Library
cpp-string
C++
cpp-stringstream
Different Methods to Reverse a String in C++
Last Updated: 02 November 2024
Reversing the string means the last character will be the first character, second last character will be second character and so on. In this
...read more
STL
cpp-string
C++
C++ Basic Programs
How to split a string in C/C++, Python and Java?
Last Updated: 11 January 2025
Splitting a string by some delimiter is a very common task. For example, we have a comma-separated list of items from a file and we want ind
...read more
Strings
Java
Python
CPP-Library
cpp-string
C Language
C++
Java-String-Programs
DSA
1
2
3
4
5
6
7
8
>>
Last
1
2
3
4
5
6
>>
Last
1
2
3
4
>>
Last
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 !