Advertisement
Guest User

admischenko_19bi2_oop_step2

a guest
Apr 6th, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1. struct Curvimeter
  2.     {
  3.     int weight; // weight of the curvimeter ()
  4.     int dial; // diameter of the dial (cm)
  5.     bool isMechanic; // curvimeter can be mechanic(true)
  6.     // or electronic(false)
  7.     const char* rollerMaterial; // curvimeter roller can be plastic or metal
  8.     bool isCondition; // curvimeter can be functional(true)
  9.     // or disfunctional(false)
  10. };
  11. // initialization of the curvimeter
  12. void init(Curvimeter*,
  13.     int weight = 5,
  14.     int dial = 8,
  15.     bool isMechanic = true,
  16.     const char* rollerMaterial = "metal\0");
  17. // visualization of the curvimeter
  18. void condition(Curvimeter*);
  19. // functionality or dysfunctionality of the curvimeter
  20. void functionality(Curvimeter*);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement