C++ coding base language snippet