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
C++ Programs
2.5k+ articles
Misc
2.1k+ articles
C Language
1.8k+ articles
CPP Examples
700+ articles
CPP-Functions
600+ articles
cpp-file-handling
57 articles
cpp-manipulators
34 articles
Input and Output
20 articles
cpp-input-output
68 posts
Popular Articles
Recent Articles
How to Change Console Color in C++?
Last Updated: 05 June 2024
In C++, most of the inbuilt input and output functions take input and show output from/to the console window. This can be useful for highlig
...read more
cpp-input-output
C++
C++ Programs
Picked
CPP Examples
How to Validate User Input in C++
Last Updated: 27 May 2024
Validating the user input is very important for any program to ensure that the data being processed is correct and meaningful. In C++, vario
...read more
cpp-input-output
C++
C++ Programs
Picked
CPP Examples
How to Take Long String Input With Spaces in C++?
Last Updated: 24 April 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 a
...read more
cpp-input-output
cpp-string
C++
C++ Programs
Picked
CPP Examples
Similar Topics
DSA
22.3k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
Misc
2.1k+ articles
C Language
1.8k+ articles
CPP Examples
700+ articles
CPP-Functions
600+ articles
cpp-file-handling
57+ articles
cpp-manipulators
34+ articles
Input and Output
20+ articles
How to Take Multiple Line String Input in C++?
Last Updated: 01 February 2024
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 d
...read more
cpp-input-output
cpp-string
C++
C++ Programs
Picked
CPP Examples
How to Read Input Until EOF in C++?
Last Updated: 31 January 2024
In C++, EOF stands for End Of File, and reading till EOF (end of file) means reading input until it reaches the end i.e. end of file. In thi
...read more
cpp-input-output
cpp-file-handling
C++
C++ Programs
Picked
CPP Examples
How Do I Print a Double Value with Full Precision Using cout?
Last Updated: 25 January 2024
The double value in C++ has a precision of up to 15 digits but while printing it using cout, it only prints six significant digits. In this
...read more
cpp-data-types
cpp-input-output
C++
C++ Programs
Picked
cpp-manipulators
CPP Examples
Read a string after reading an integer
Last Updated: 04 May 2021
In this article, we will discuss how to read a string after reading an integer.Program 1:Below is the program that inputs a string with spac
...read more
cpp-input-output
C++
C++ Programs
Managing Console I/O operations in C++
Last Updated: 07 April 2021
Every program takes some data as input and generates processed data as an output following the familiar input process output cycle. It is es
...read more
cpp-input-output
CPP-Basics
C++
Input and Output
C++ Programs
Output in C++
Last Updated: 14 April 2023
In this article, we will discuss the very basic and most common I/O operations required for C++ programming. C++ runs on lots of platforms l
...read more
cpp-input-output
C++
Input Output Systems
C++ Programs
Picked
Taking password as input in C++
Last Updated: 27 May 2024
There are two methods in which input can be taken in a more secure way:Do not display any content.Display a special character such as an ast
...read more
Misc
cpp-input-output
Programming Language
C++
Input and Output
C++ Programs
C/C++ program to print Hello World without using main() and semicolon
Last Updated: 21 June 2022
The task is to write a program to print Hello World without using main() and semicolon. As we already know, how to print Hello World without
...read more
c-input-output
cpp-input-output
School Programming
C Programs
C++ Programs
iomanip setiosflags() function in C++ with Examples
Last Updated: 10 June 2021
The setiosflags() method of iomanip library in C++ is used to set the ios library format flags specified as the parameter to this method.Syn
...read more
cpp-input-output
CPP-Functions
C++
cpp-manipulators
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
Why we should avoid using std::endl
Last Updated: 27 December 2022
It is a common practice to use std::endl to print newlines while using cout. For small programs with very little I/O operations this practic
...read more
cpp-input-output
C++
Using a variable as format specifier in C
Last Updated: 29 May 2017
It is known that, printf() function is an inbuilt library function in C programming language in the header file stdio.h. It is used to print
...read more
cpp-input-output
C++
First
1
2
3
4
5
>>
Last
First
1
2
3
4
5
>>
Last
First
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 !