class cube;
private;
float s1, s2, s3;
public;
void print();
float area (float, float, float);
}


the following class in incorrect any know how to write it correctly ..

thank you Very Much For Help ..

class cube
{
private:
float s1, s2, s3;
public:
void print();
float area (float, float, float);
};
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.