test os working in C++