adding training C++