难点:生成一个随机数 需要引用的两个主要的头文件 Include<time.h> Include<stdlib.h> 随机生成一个随机数:srand(unsigned int ) time(NULL))