c++ program of manipulators


Manipulators in c++ for formatting the text they are in iomanip.h header file.

some manipulators  endl, setw setpreciosion in c++

endl  sets for new line feed

setw  set field width

setprecision  for precision value(fractional part of value)

if we used above manipulators  we include iomanip.h header file in c++


write a program in c++ of  manipulators like setw,setprecision,endloutput of cin and cout in c++

Enter Your Name,Number and Salary

Apple

123

50000

Your Name,Number and Salary are as below :

Apple        123  50000.00

(Visited 114 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image