randomize()是为了生成随机种子,如果不调用randomize(),在使用rand0时产生的随机数总是一样的.为了产生不同的数,所以调用.
food.x=rand()%400+60
这句就是产生一个范围在60~459之间的随机数.%是取模运算
函数原形void far rectangle(int left, int top, int right, int bottom),其中参数left, top, right,bottom 代表矩形的左上角和右下角坐标
answer 1:rectangle(int,int,int,int) 应该是一个类的构造函数,就 是用 i,451,i+10,460去初始化。
answer 3:%是求模运算符