Thursday, 12 January 2012

Program Of Setfill Manipulators In C++


#include<iostream.h>
#include<conio.h>

main()
{
clrscr();
cout.fill('-');
cout.width(8);
cout<<" there is a man"<<endl;
cout.width(8);
cout<<"there is a man"<<endl;


getch();
}

------------------------------------------------------------------------


Setfill is used after Setw Manipulator. If a Value does not entirely fill a field, Then the character specified in the Setfill argument of the Manipulator is used for filling the fields.


No comments:

Post a Comment