Making your own manipulators in C++!

Words
82
Reading
1 min
Listen
Play
9y

Making Your Own Manipulators

In c++ you can make your own manipulators. Its very is and is fun.
Here I will show you an example a simple one. I tried to make it similar to an american drama serial The originals.

Dependency

it depends or changes from compiler to compiler and version to version of same compiler.
So make sure you check the documents of your compiler.

Program Body

#include iostream
#include string
#include iomanip
using namespace std;

ostream &originals(ostream &ori){
ori<<" The originals is the first family of vampires 'THE UNKILLABELS'";
return ori;
}
int main (){
cout<<"who are the originals"<<originals<<endl;
}

Working Of Program

za4.jpg

Thanks steemians

I hope you guys will like it and stay tuned for more

Making your own manipulators in C++! | Ecency