Tutorials
Courses
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
21.3K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Misc
8.5K+ articles
C++
4.3K+ articles
CPP-Functions
619+ articles
CPP-Basics
102+ articles
cpp-input-output
68+ articles
cpp-ios
34+ articles
cpp-manipulators
34 posts
Recent Articles
Popular Articles
ios manipulators dec() function in C++
Last Updated: 02 September 2019
The dec() method of stream manipulators in C++ is used to set the baseline format flag for the specified str stream. This flag sets the baseline for Decimal numbers. Hence...
read more
Misc
C++
cpp-ios
cpp-manipulators
ios manipulators fixed() function in C++
Last Updated: 02 September 2019
The fixed() method of stream manipulators in C++ is used to set the floatfield format flag for the specified str stream. This flag sets the floatfield to fixed. It means t...
read more
Misc
C++
cpp-ios
cpp-manipulators
ios manipulators left() function in C++
Last Updated: 02 September 2019
The left() method of stream manipulators in C++ is used to set the adjustfield format flag for the specified str stream. This flag sets the adjustfield to left. It means t...
read more
Misc
C++
cpp-ios
cpp-manipulators
Manipulators in C++
Last Updated: 10 January 2025
Manipulators are helping functions that can modify the input or output stream. They can be included in the I/O statement to alter the format parameters of a stream. They a...
read more
C++
cpp-input-output
CPP-Basics
cpp-manipulators
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.Syntax:setiosflags (ios_base::form...
read more
C++
cpp-input-output
CPP-Functions
cpp-manipulators
iomanip resetiosflags() function in C++ with Examples
Last Updated: 12 June 2021
The resetiosflags() method of iomanip library in C++ is used to reset the ios library format flags specified as the parameter to this method.Syntax:resetiosflags (ios_base...
read more
C++
cpp-input-output
CPP-Functions
cpp-manipulators
iomanip setfill() function in C++ with Examples
Last Updated: 22 July 2022
The setfill() method of iomanip library in C++ is used to set the ios library fill character based on the character specified as the parameter to this method.Syntax:setfil...
read more
C++
cpp-input-output
CPP-Functions
cpp-manipulators
iomanip setprecision() function in C++ with Examples
Last Updated: 18 February 2022
The setprecision() method of iomanip library in C++ is used to set the ios library floating point precision based on the precision specified as the parameter to this metho...
read more
C++
cpp-input-output
CPP-Functions
cpp-manipulators
setw() function in C++ with Examples
Last Updated: 20 February 2025
The setw() method of iomanip library in C++ is used to set the ios library field width based on the width specified as the parameter to this method. The setw() stands for ...
read more
C++
cpp-input-output
CPP-Functions
cpp-manipulators
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 article, we will learn how to p...
read more
C++ Programs
C++
Picked
cpp-data-types
cpp-input-output
cpp-manipulators
CPP Examples
How to use setprecision in C++?
Last Updated: 17 May 2024
In C++, we have astd::setprecision function which is a part of the iomanip library. It is used to set the number of decimal places to be displayed for a floating-point num...
read more
C++ Programs
C++
Picked
cpp-input-output
cpp-manipulators
CPP Examples
How to use the setw Manipulator in C++?
Last Updated: 17 May 2024
In C++, thestd::setwmanipulator, which stands for “set width”, is a function provided by theiomaniplibrary. The width of the field in which the output of the subsequent va...
read more
C++ Programs
C++
Picked
cpp-input-output
cpp-manipulators
CPP Examples
How to Right Justify Output in C++?
Last Updated: 21 May 2024
In C++, the outputs produced by the program are by default to the left of the screen. In this article, we will learn how to right justify the output in C++.Example:Input:f...
read more
C++ Programs
C++
Picked
cpp-ios
cpp-manipulators
CPP Examples
Printing Boolean Values in C++
Last Updated: 27 May 2024
In C++, a boolean data type can only have two possible values true and false. However, when we print the boolean data types using the standard output streams like cout the...
read more
C++ Programs
C++
Picked
cpp-data-types
CPP-Output
cpp-manipulators
CPP Examples
Error: std::endl is of Unknown Type when Overloading Operator <<
Last Updated: 22 July 2024
In C++, the operator is commonly overloaded for custom output for user-defined types using streams. However, an issue may arise when using std::endl with an overloaded op...
read more
C++
Picked
cpp-input-output
cpp-operator-overloading
cpp-manipulators
1
2
3
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 !