daily pastebin goal
96%
SHARE
TWEET

Untitled

a guest Mar 26th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //dualNumber.h
  2. #pragma once
  3. class CDualNumber {
  4. private:
  5.     double m_real;
  6.     double m_dual;
  7. public:
  8.     CDualNumber(double, double);
  9.     double Real() const;
  10.     double Dual() const;
  11. };
  12.  
  13.  
  14. //dualNumber.cpp
  15.  
  16. #include "dualNumber.h"
  17. using namespace std;
  18.  
  19. class CDualNumber  {
  20.   private:
  21.       double m_real;
  22.       double m_dual;
  23.   public:
  24.      CDualNumber (double real = 0.0, double dual = 0.0) :  m_real(real), m_dual(dual) {  }
  25.     double Real () const { return m_real; }
  26.     double Dual () const { return m_dual; }
  27. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top