c++ code from my high school