help guanxi to write an easy c++ program