space_age: naive
This commit is contained in:
parent
c2ebbd269b
commit
af9aad2d97
2 changed files with 83 additions and 0 deletions
28
cpp/space-age/space_age.h
Normal file
28
cpp/space-age/space_age.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
|
||||
#define EXERCISM_RUN_ALL_TESTS
|
||||
|
||||
|
||||
namespace space_age {
|
||||
|
||||
class space_age
|
||||
{
|
||||
double seconds_;
|
||||
|
||||
public:
|
||||
|
||||
space_age(double seconds);
|
||||
|
||||
double seconds() const;
|
||||
|
||||
double on_earth() const;
|
||||
double on_mercury() const;
|
||||
double on_venus() const;
|
||||
double on_mars() const;
|
||||
double on_jupiter() const;
|
||||
double on_saturn() const;
|
||||
double on_uranus() const;
|
||||
double on_neptune() const;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue