User-defined Manipulators
Learn how to create manipulators to output a tab and display a roman number as a decimal.
We'll cover the following
Problem
Write a program to create two user-defined manipulators called tab
and roman
. The tab
manipulator should output a \t
to the output stream and the roman
manipulator should receive a roman string as an argument and send its decimal equivalent to the output stream.
Coding solution
Here is a solution to the problem above.
Get hands-on with 1400+ tech skills courses.