Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- class Patente {
- private:
- std::string patente;
- public:
- Patente(const std::string p="AAA000");
- Patente(const Patente& p);
- bool operator<(const Patente& p) const;
- bool operator>(const Patente& p) const;
- bool operator==(const Patente& p) const;
- operator int();
- friend std::ostream& operator<<(std::ostream& os, const Patente& p);
- };
- bool Patente::operator>(const Patente& p) const {
- if (this->patente>p.patente)
- return true;
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement