Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- class pyramid{
- private:
- double a,b,c,h;
- int x[3];
- public:
- pyramid(){
- printf("Input a,b,c and h:");
- scanf("%lf,%lf,%lf,%lf",a,b,c,h);
- }
- pyramid(double x, double y, double z, double m){
- a=x,b=y,z=c,m=h;
- }
- pyramid(const pyramid &obj){
- }
- };
- void main(){
- pyramid p1(3.0,4.0,5.0,7.0), p2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement