Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ostream>
- #include <string.h>
- class Legajo {
- public:
- std::string numero;
- // Constructor default
- Legajo();
- // Constructor de inicializacion
- Legajo(std::string legajo);
- // Constructor de copia
- Legajo(const Legajo& other);
- // Operador <
- bool operator < (const Legajo& other) const;
- // Operador ==
- bool operator == (const Legajo& other) const;
- bool operator > (const Legajo& other) const{
- return (this->numero > other.numero);
- }
- Legajo& operator = (const Legajo& other);
- friend std::ostream& operator << (std::ostream& o, const Legajo& l);
- };
- int main() {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement