π的值

#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main()
{
    int i;
    cout<<setiosflags(ios::fixed)<<setprecision(20);//控制小数位数
    cout<<4*atan(1)<<endl;
    return 0;
}

posted @ 2014-07-17 14:44  gongpixin  阅读(252)  评论(0编辑  收藏  举报