#include "stdafx.h"
#include "iostream.h"
//using namespace std;
int main(int argc, char* argv[])
{
cout.width(20);
cout.fill('*');
cout<<endl<<" "<<endl;
cout.precision(4);
cout<<2007.3543<<endl;
printf("Hello World!\n");
return 0;
}
#include "stdafx.h"
#include "iostream.h"
//using namespace std;
#include "iomanip.h"
int main(int argc, char* argv[])
{
cout.width(20);
cout.fill('*');
cout<<endl<<" "<<endl;
cout.precision(4);
cout<<2007.3543<<endl;
printf("Hello World!\n");
cout<<setw(20)<<"hello !"<<endl;
cout<<setprecision(4)<<2004.345<<endl;
cout<<setw(20)<<setfill('*')<<""<<endl;
//cout<<scientific<<300.89<<endl;
cout<<oct<<9<<endl;//八进制转换
return 0;
}