C++ code can use on linux and windows