exercism/cpp/space-age/space_age.h

25 lines
464 B
C
Raw Normal View History

#if !defined(SPACE_AGE_H)
#define SPACE_AGE_H
namespace space_age {
class space_age {
public:
space_age(unsigned long secs);
unsigned long seconds() const;
float on_earth() const;
float on_mercury() const;
float on_venus() const;
float on_mars() const;
float on_jupiter() const;
float on_saturn() const;
float on_uranus() const;
float on_neptune() const;
private:
unsigned long seconds_;
};
} // namespace space_age
#endif // SPACE_AGE_H