Advertisement
tomasaccini

Untitled

Jul 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #include <string>
  2.  
  3. class FechaYHora {
  4. private:
  5.     std::string fecha_y_hora;
  6. public:
  7.     // Constructor default
  8.     FechaYHora();
  9.  
  10.     // Constructor con string de inicialización
  11.     FechaYHora(const std::string& fecha_hora);
  12.  
  13.     // Constructor de copia
  14.     FechaYHora(const FechaYHora& other);
  15.  
  16.     // Operador <
  17.     bool operator < (const FechaYHora& other) const;
  18.  
  19.     // Operador ==
  20.     bool operator == (const FechaYHora& other) const;
  21.  
  22.     // Operador =
  23.     FechaYHora& operator = (const FechaYHora& other);
  24.  
  25.     operator int() const;
  26. };
  27.  
  28. int main() {
  29.     return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement