Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- class FechaYHora {
- private:
- std::string fecha_y_hora;
- public:
- // Constructor default
- FechaYHora();
- // Constructor con string de inicialización
- FechaYHora(const std::string& fecha_hora);
- // Constructor de copia
- FechaYHora(const FechaYHora& other);
- // Operador <
- bool operator < (const FechaYHora& other) const;
- // Operador ==
- bool operator == (const FechaYHora& other) const;
- // Operador =
- FechaYHora& operator = (const FechaYHora& other);
- operator int() const;
- };
- int main() {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement