C++ triple script