Hs
展开全部
voidinsertion_sort(intarray[],intfirst,intlast)
{
inti,j;
inttemp;
for(i=first+1;i{
temp=array[i];
j=i-1;
//与已排序的数逐一比较,大于temp时,该数移后
while((j>=0)&&(array[j]>temp))
{
array[j+1]=array[j];
j--;
}
//存在大于temp的数
if(j!=i-1)
{array[j+1]=temp;}
}
}
有10℃的话是可以正常工作的,已刚少但是最好是能稳定在20℃,关键是要稳定,不要有太大的起伏。热胀冷缩会影响加工精度,温差过大还会导致电箱内结露,损坏电气设备。