some c/c++ code