int main() { float a=3.2; float b=1.5; cout<<b*a<<endl; if(a*2+b*3==10.9) printf("对了"); } 为什么,不能输出“对了”,头文件都已经加了。