当运行if (growing) {
current += growthFactor
} else {
current -= growthFactor
}
if (current == size || current == 0) {
growing = !growing
}
两个就不同了,设置current = previous = s是为了初始化程序
欢迎分享,转载请注明来源:内存溢出
当运行if (growing) {
current += growthFactor
} else {
current -= growthFactor
}
if (current == size || current == 0) {
growing = !growing
}
两个就不同了,设置current = previous = s是为了初始化程序
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)