Advertisement
pVinc

axe.cpp

May 31st, 2021
47
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "axe.hpp"
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. Axe::Axe(float nmin, float nmax, float ninterval) {
  7. min = nmin;
  8. max = nmax;
  9. interval = ninterval;
  10. }
  11. void Axe::setmin(float nmin) { min = nmin; }
  12. void Axe::setmax(float nmax) { max = nmax; }
  13. void Axe::setinterval(float ninterval) { interval = ninterval; }
  14. float Axe::getmin() { return min; }
  15. float Axe::getmax() { return max; }
  16. float Axe::getinterval() { return interval; }
  17.  
  18. void Axe::wypisz() {
  19. cout << "min: " << min << ", max: " << max << ", interval: " << interval;
  20. }
  21.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement