C++ conversion

Converted to a C++ project