/*----------------------------------------------------------------------*/
/*                           Setflags.cpp                               */
/* Authored By : H.P.Kasmaei                                            */
/* Last Update : february 27, 2009                                      */
/* http://www.hpkclasses.ir/                                            */
/*----------------------------------------------------------------------*/

#include<iostream.h>
#include<iomanip.h>

int main()
{
   cout <<2002<<endl;
   cout << "In Hex " << hex <<2002 << endl;
   cout.seft (ios::scientific, ios::floatfield);
   cout << 987.123456 <<endl;
   cout << setprecision(3) << 987.123456 <<endl;
   cout << fill('x');
   cout << width(10);
   cout << 1234<<endl;
   cout.setf(ios::left,ios::adjustfield);
   cout << 1234 <<endl;

   return 0;
}

