quick C++ prototype