Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. class pyramid{
  3. private:
  4. double a,b,c,h;
  5. int x[3];
  6. public:
  7. pyramid(){
  8. printf("Input a,b,c and h:");
  9. scanf("%lf,%lf,%lf,%lf",a,b,c,h);
  10. }
  11. pyramid(double x, double y, double z, double m){
  12. a=x,b=y,z=c,m=h;
  13. }
  14. pyramid(const pyramid &obj){
  15. }
  16.  
  17. };
  18. void main(){
  19. pyramid p1(3.0,4.0,5.0,7.0), p2;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement