//2. Program shows the application of setf function right padding
int main()
{
cout.width(20);
cout.setf(ios::right,ios::adjustfield);
cout.fill('*');
cout<<"IT";
}
int main()
{
cout.width(20);
cout.setf(ios::right,ios::adjustfield);
cout.fill('*');
cout<<"IT";
}
No comments:
Post a Comment