不知何故,当我运行这个程序时,它会继续下去,即使我写的方式使它在我达到10时停止.请帮助.
double i; for(i = 0; i != 10; i+= 0.1){ printf("%.1f\n", i); }
c++ for-loop
c++ ×1
for-loop ×1