Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <conio.h>
  4.  
  5. using namespace std;
  6.  
  7. class figura1
  8.  
  9. {
  10. private:
  11. float a;
  12. float b;
  13. public:
  14. figura(float aa,float bb);
  15. virtual float area();
  16. virtual void output();
  17. };
  18.  
  19. figura1::figura(float aa,float bb)
  20. {
  21. a=aa;
  22. b=bb;
  23. }
  24. float area(float S,float a,float b)
  25. {
  26. return S=a*b;
  27. }
  28. void output(float S)
  29. {
  30. cout«"S";
  31. }
  32.  
  33.  
  34. int mine()
  35. {
  36. float a;
  37. float b;
  38. cout«" a ";
  39. cin» a;
  40. cout«"b";
  41. cin»b;
  42. cout« "S";
  43. getch();
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement