1234567891011121314151617181920212223242526272829303132333435 |
- //
- // Created by jovian on 15/01/18.
- //
- #ifndef SERIALIZATION_POINTSYSTEM_H
- #define SERIALIZATION_POINTSYSTEM_H
- #include <ostream>
- #include "Serializable.h"
- #define MAX_SIZE 10
- class PointSystem : public Serializable {
- // Methods
- public:
- PointSystem();
- void addPoint(int p);
- void display();
- friend std::ostream &operator<<(std::ostream &os, const PointSystem &pointSystem);
- friend std::istream &operator>>(std::istream &is, PointSystem &pointSystem);
- // Attributes
- private:
- int points[MAX_SIZE];
- int nb;
- };
- #endif //SERIALIZATION_POINTSYSTEM_H
|