If you want to implement this lab using C++, you can still use the spline.f90 routine. An example of using fortran routine in C++ can be found at software -> LAPACK resources -> LAPACK examples. You are wellcome to implement it by yourself or use other libararies as well.