check c++ params