Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Misc
7.7K+ articles
C++
3.8K+ articles
CPP-Functions
619+ articles
CPP-Basics
102+ articles
cpp-input-output
70+ articles
cpp-ios
34+ articles
cpp-manipulators
34 posts
Recent Articles
Popular Articles
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
Printing Boolean Values in C++
Last Updated: 23 July 2025
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
How to Right Justify Output in C++?
Last Updated: 23 July 2025
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
How to use the setw Manipulator in C++?
Last Updated: 23 July 2025
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 use setprecision in C++?
Last Updated: 23 July 2025
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 Do I Print a Double Value with Full Precision Using cout?
Last Updated: 23 July 2025
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
iomanip setiosflags() function in C++ with Examples
Last Updated: 12 July 2025
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 setprecision() function in C++ with Examples
Last Updated: 12 July 2025
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
iomanip setfill() function in C++ with Examples
Last Updated: 12 July 2025
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 resetiosflags() function in C++ with Examples
Last Updated: 12 July 2025
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
Manipulators in C++
Last Updated: 17 January 2026
A manipulator is a special function in C++ that is used with input/output streams (like cin, cout ) to change the way data is shown or read. We can use manipulators when w...
read more
C++
cpp-input-output
CPP-Basics
cpp-manipulators
ios manipulators fixed() function in C++
Last Updated: 12 July 2025
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 dec() function in C++
Last Updated: 12 July 2025
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 left() function in C++
Last Updated: 12 July 2025
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
1
2
3