As I understand it, you want to fit a degree three polynomial to course data to be able to use the polynomial to interpolate between the course data points.
To be able to fit the coefficients ($a$, $b$, $c$, and $d$) of the degree three polynomial so that it goes through the original data points, you need exactly four data points, $(t_1,y_1), \cdots, (t_4,y_4)$. If you have more than four data points, the polynomial values will not necessarily go through the original data points.
Edit: Calculation of Polynomial Coefficients
For four sequential data points ($i,i+1,i+2,i+3$), the following equations must hold:
\begin{eqnarray}
at_i^3 +bt_i^2 +ct_i + d &=& y_i \\
at_{i+1}^3 +bt_{i+1}^2 +ct_{i+1} + d &=& y_{i+1} \\
at_{i+2}^3 +bt_{i+2}^2 +ct_{i+2} + d &=& y_{i+2} \\
at_{i+3}^3 +bt_{i+3}^2 +ct_{i+3} + d &=& y_{i+3}
\end{eqnarray}
This can be written as a matrix-vector equation
$$
\left[\begin{array}{llll}
t_i^3 & t_i^2 & t_i & 1 \\
t_{i+1}^3 & t_{i+1}^2 & t_{i+1} & 1 \\
t_{i+2}^3 & t_{i+2}^2 & t_{i+2} & 1 \\
t_{i+3}^3 & t_{i+3}^2 & t_{i+3} & 1
\end{array}\right]
\left[\begin{array}{c}
a \\ b \\ c \\ d
\end{array}\right] =
\left[\begin{array}{l}
y_i \\ y_{i+1} \\ y_{i+2} \\ y_{i+3}
\end{array}\right]
$$
which can be solved for the vector of unknown coefficients ($a$, $b$, $c$, and $d$) using
$$
\left[\begin{array}{c}
a \\ b \\ c \\ d
\end{array}\right] =
\left[\begin{array}{llll}
t_i^3 & t_i^2 & t_i & 1 \\
t_{i+1}^3 & t_{i+1}^2 & t_{i+1} & 1 \\
t_{i+2}^3 & t_{i+2}^2 & t_{i+2} & 1 \\
t_{i+3}^3 & t_{i+3}^2 & t_{i+3} & 1
\end{array}\right]^{-1}
\left[\begin{array}{l}
y_i \\ y_{i+1} \\ y_{i+2} \\ y_{i+3}
\end{array}\right]
$$
These coefficients can then be used to calculate the value of $y$ for a given $t$ where $t_i<t<t_{i+3}$:
$$
y = at_3 + bt^2 +ct +d
$$
I would recommend using a cubic spline interpolation method so that you will get a smooth interpolating curve that goes through all the original data points and that can handle more that four data points. See Numerical Recipes 3rd Edition: The Art of Scientific Computing by Press, et al. for very good C or C++ code to perform cubic spline interpolation.