C++ - easy prototype