C++ Legacy Codes