some test code written at eachday with c/cpp/java/JavaScript/erlang