Add snippet for C++