Skip to content
geeksforgeeks
  • 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
    • GfG 160
    • 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
  • DSA
  • Practice Problems
  • Python
  • C
  • C++
  • Java
  • Courses
  • Machine Learning
  • DevOps
  • Web Development
  • System Design
  • Aptitude
  • Projects
Similar Topics
DSA
22.4k+ articles
C++
4.1k+ articles
Strings
3.2k+ articles
C++ Programs
2.4k+ articles
Searching
1.7k+ articles
Hash
1.2k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
substring
340+ articles
cpp-string
140+ articles

cpp-strings

59 posts
C++ Program to Check String is Containing Only Digits
Last Updated: 27 January 2023
Prerequisite: Strings in C++The string is the collection of characters or text in a string variable, surrounded by double quotes. One questi ...read more
Technical Scripter
C++
C++ Programs
cpp-strings
Technical Scripter 2022
Convert char* to std::string in C++
Last Updated: 16 October 2024
Strings are generally represented as an instance of std::string class in C++. But the language also supports the older C-Style representatio ...read more
C++
C++ Programs
cpp-strings
C++ Conversion Programs
Convert std::string to LPCWSTR in C++
Last Updated: 20 October 2022
C++ provides us a facility using which one can represent a sequence of characters as an object of a class. This class is std::string. Intern ...read more
Strings
C++
cpp-strings
DSA
Similar Topics
DSA
22.4k+ articles
C++
4.1k+ articles
Strings
3.2k+ articles
C++ Programs
2.4k+ articles
Searching
1.7k+ articles
Hash
1.2k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
substring
340+ articles
cpp-string
140+ articles
string::npos in C++ with Examples
Last Updated: 21 September 2023
What is string::npos?It is a constant static member value with the highest possible value for an element of type size_t.It actually means un ...read more
cpp-string
C++
cpp-strings-library
cpp-strings
C++ program to check whether a String is a Pangram or not
Last Updated: 17 March 2023
Given string str, the task is to check whether a string is pangram or not using in C++.A string is a Pangram if the string contains all the ...read more
Strings
Hash
STL
C++
cpp-strings
DSA
String hashing using Polynomial rolling hash function
Last Updated: 28 April 2025
Given a string str of length n, your task is to find its hash value using polynomial rolling hash function.Note: If two strings are equal, t ...read more
Strings
Algorithms
Hash
Advanced Data Structure
Competitive Programming
Programming Language
C++
Data Structures
C-String-Question
Hash
C++ Programs
maths-polynomial
cpp-strings
DSA
std::string::rfind in C++ with Examples
Last Updated: 26 May 2022
The std::string::rfind is a string class member function that is used to search the last occurrence of any character in the string. If the c ...read more
Strings
Searching
C++
C-Library
C++ Programs
cpp-strings
DSA
std::string::find_last_of in C++ with Examples
Last Updated: 20 March 2023
The std::string::find_last_of is a string class member function which is used to find the index of last occurrence of any characters in a st ...read more
Algorithms
Searching
STL
C++
C++ Programs
cpp-strings
DSA
Program to reverse words in a given string in C++
Last Updated: 06 July 2023
Given a sentence in the form of string str, the task is to reverse each word of the given sentence in C++.Examples:Input: str = "the sky is ...read more
Strings
STL
Reverse
Data Structures
C++ Programs
cpp-strings
DSA
Frequency of each character in a String using unordered_map in C++
Last Updated: 26 October 2020
Given a string str, the task is to find the frequency of each character of a string using an unordered_map in C++ STL.Examples:Input: str = ...read more
STL
C++
cpp-unordered_map
frequency-counting
cpp-strings
Strings in C++ and How to Create them?
Last Updated: 11 March 2023
Strings in C++ are used to store text or sequences of characters. In C++ strings can be stored in one of the two following ways:C-style stri...read more
image
Misc
C++
cpp-strings
Convert character array to string in C++
Last Updated: 11 January 2025
This article shows how to convert a character array to a string in C++.The std::string in c++ has a lot of inbuilt functions which makes imp ...read more
Strings
C++
C++ Programs
cpp-strings
DSA
Check whether two strings are equivalent or not according to given condition
Last Updated: 14 August 2023
Given two strings A and B of equal size. Two strings are equivalent either of the following conditions hold true:1) They both are equal. Or, ...read more
Strings
Algorithms
Recursion
tail-recursion
cpp-strings
DSA
Sub-string that contains all lowercase alphabets after performing the given operation
Last Updated: 07 May 2025
Given a string str containing lower case alphabets and character '?'. The task is to check if it is possible to make strgood or not.A string ...read more
Strings
Mathematical
Competitive Programming
cpp-strings
DSA
String after processing backspace characters
Last Updated: 07 September 2022
Given a string S containing letters and '#'. The '#" represents a backspace. The task is to print the new string without '#'.Examples:Input ...read more
Strings
Queue
cpp-deque
deque
cpp-strings
DSA
1 2 3 4 >>
Last
1 2 3 4 >>
Last
1 2 3 4 >>
Last
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
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
Lightbox