These are Henry Yang's C and C++ codes.