没注释的源代码
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double r,h,pi=3.14,c,s1,s2,v1,v2;
cout<<"请输入圆的半径,圆柱高:";
cin>>r>>h;
c=2*pi*r;
s1=pi*r*r;
s2=4*pi*r*r;
v1=(4*pi*r*r*r)/3;
v2=s1*h;
cout<<"圆周长:"<<setiosflags(ios::fixed)<<setprecision(2)<<c<<endl;
cout<<"圆面积:"<<setiosflags(ios::fixed)<<setprecision(2)<<s1<<endl;
cout<<"圆球表面积:"<<setiosflags(ios::fixed)<<setprecision(2)<<s2<<endl;
cout<<"圆球体积:"<<setiosflags(ios::fixed)<<setprecision(2)<<v1<<endl;
cout<<"圆柱体积:"<<setiosflags(ios::fixed)<<setprecision(2)<<v2<<endl;
return 0;
}