C++ command line training code