Why won't my save and load c++ code work?

This saved me after a day of frustration… its ALWAYS something small…