simple c/cpp codes