A desktop clock written in C + +
4.0
Clock can be roughly composed of clock background, hour hand, minute hand and second hand. The four parts of the clock can be regarded as four different objects, which can be implemented by creating classes cclockbackground, cclockhourhand, cclockminhand and cclocksechand. These four classes have something in common. They all have their own drawing functions. If you want to be able to set colors, they should all have their own drawing colors. They should also have color setting functions. In addition, they all have drawing area and region setting functions, etc.