change to c++
did the header file