This is Henry Yang's C and C++ codes.