摘要:
#include #include using namespace std; int main(){ double d=97.123456789012345; double dou=205.123456; double doub=123456.007; cout<<d<<endl; cout<<dou<<endl; cout<<doub<<e... 阅读全文
摘要:
#include #include using namespace std; int main(){ double a=123.456,b=3.14159,c=-3214.67; cout<<setiosflags(ios::fixed)<<setiosflags(ios::right)<<setprecision(2); cout<<setw(10)<<a<<endl; cout<... 阅读全文