testing functions and other things in c++