I have created a class. In this class there is my own display function. I have created two objects of the same class. Now I want to print these objects using display function but only object 2 will use setprecision manipulator.
how to make it?
If I have defined the setprecision in display function then any object calling display function will use setprecision.How to make sure that only object 2 uses setprecision? while both objects calls the same display function.