In-Class Example: Splitting Up Our Orbit Code

In-Class Example: Splitting Up Our Orbit Code#

Let’s go back to our Example: Planetary Orbit code and split it up into a header and a .cpp file.

The header should define the OrbitState struct and use inline functions for the associated functions. The main should be in its own .cpp file.