各位高手帮忙看看它错在哪
#include<iostream>using namespace std;
#define PI 3.14
class cylinder{
public:
cylinder(double r,double h);
double vol();
private:
double radius;
double height;
};
cylinder::cylinder(double r,double h);
{radius=r;height=h;}
double cylinder::vol()
{cout<<PI*radius*radius*height<<endl;}
int main()
{ int n;cylinder voln;
cout<<"The volume of cylimder is"<<voln.vol()<<endl;return 0;}