practise in c++