for(int hour = 0; hour < 24; hour++)这个循环会执行24次,hour的值从0变化到23,正好对应一天的24个小时。
for(int hour = 0; hour < 24; hour++)
正确
错误