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
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
Sign In
▲
Similar Topics
DSA
22.3k+ articles
C++
4k+ articles
Strings
3.2k+ articles
C++ Programs
2.5k+ articles
Competitive Programming
2.3k+ articles
C Language
1.8k+ articles
Amazon
1.8k+ articles
CPP-Library
240+ articles
cpp-string
140+ articles
cpp-input-output
68 articles
cpp-stringstream
12 posts
Popular Articles
Recent Articles
How to Use stringstream for Input With Spaces in C++?
Last Updated: 06 July 2024
In C++, thestd::stringstreamclass is a stream class to operate on strings and is very useful when we want to operate on a string as if it we
...read more
cpp-input-output
C++
C++ Programs
cpp-stringstream
Picked
CPP Examples
How to Iterate through a String word by word in C++
Last Updated: 15 June 2022
Given a String comprising of many words separated by space, the task is to iterate over these words of the string in C++.Example:Input: str
...read more
cpp-string
C++ Programs
cpp-stringstream
Find the missing value from the given equation a + b = c
Last Updated: 01 September 2022
Given an equation of the form:a + b = cOut of which any one of the terms[Tex]a[/Tex],[Tex]b[/Tex]or[Tex]c[/Tex]is missing. The task is to fi
...read more
Strings
Mathematical
Competitive Programming
cpp-stringstream
DSA
Similar Topics
DSA
22.3k+ articles
C++
4k+ articles
Strings
3.2k+ articles
C++ Programs
2.5k+ articles
Competitive Programming
2.3k+ articles
C Language
1.8k+ articles
Amazon
1.8k+ articles
CPP-Library
240+ articles
cpp-string
140+ articles
cpp-input-output
68+ articles
tellg() function in C++ with example
Last Updated: 05 June 2018
The tellg() function is used with input streams, and returns the current "get" position of the pointer in the stream. It has no parameters a
...read more
C++
C++ Programs
cpp-stringstream
StringStream in C++ for Decimal to Hexadecimal and back
Last Updated: 14 February 2023
Stringstream is stream class present in C++ which is used for doing operations on a string. It can be used for formatting/parsing/converting
...read more
Misc
Strings
Competitive Programming
TechTips
cpp-input-output
cpp-string
C++
base-conversion
C++ Programs
cpp-stringstream
DSA
C/C++ Puzzles
Reverse individual words
Last Updated: 17 March 2025
Given string str, we need to print the reverse of individual words.Examples: Input: Hello WorldOutput: olleH dlroWExplanation: Each word in
...read more
Strings
Amazon
Stack
STL
cpp-string
cpp-stack
cpp-stringstream
DSA
Tokenizing a string in C++
Last Updated: 11 January 2025
Tokenizing a string denotes splitting a string with respect to some delimiter(s). There are many ways to tokenize a string. In this article
...read more
Strings
cpp-string
C Language
C++
cpp-stringstream
DSA
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
Find the first repeated word in a string
Last Updated: 20 December 2023
Given a string, Find the 1st repeated word in a string.Examples:Input: "Ravi had been saying that he had been there"Output: hadInput: "Ravi
...read more
Strings
Amazon
Goldman Sachs
cpp-unordered_map
cpp-stringstream
DSA
Program to extract words from a given String
Last Updated: 18 April 2023
The task is to extract words from a given string. There may be one or more space between words.Examples:Input : geeks for geeksOutput : geek
...read more
Strings
cpp-string
cpp-stringstream
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
1
1
1
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 !