为什么我老是能遇到这种超级简单又奇葩的问题 求大神搭救!!
#include <iostream>using namespace std;
int main() {
float a, f = 4.4;
while (f > 0) {
cin >> a;
f -= a;
cout << f << endl;
}
return 0;
}
请依次输入1.1、2.2、1.1结果竟然不是0
!? (编译器vc 6.0)求原因~
!? (编译器vc 6.0)
2020-07-13 11:04
2020-07-13 12:00
2020-07-13 13:49
2020-07-13 14:38
2020-07-13 14:39

2020-07-13 16:38
2020-07-23 23:06