mirror of
https://codeberg.org/andyscott/exercism.git
synced 2024-11-09 13:20:48 -05:00
25 lines
464 B
C
25 lines
464 B
C
|
#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
|