Back to slide -- Keyboard shortcut: 'u'  previous -- Keyboard shortcut: 'p'  next -- Keyboard shortcut: 'n'          program-organization/kn-clarification-with-namespace/tripple.h - The header file tripple.h.Lecture 3 - slide 27 : 27
Program 2

#ifndef TRIPPLE_H
#define TRIPPLE_H

#include "point.h"

namespace Geometrical{ 

  class Point;
  
  class Tripple {
      private:
          int x, y, z;
  
      public:
          Tripple();                   
          Tripple(int xi, int yi, int zi); 
          Tripple(Point p);             
  
          int getx() const;
          int gety() const;
          int getz() const;

      friend std::ostream& operator<<(std::ostream&, const Tripple&);
  };
  
  std::ostream& operator<<(std::ostream&, const Tripple&);
}

#endif // TRIPPLE_H