同样的程序
printf("%.0lf\n", calc(ansx, ansy));
cout<<(int)(calc(ansx,ansy)+0.5);
上面的是对的 下面的 cout 是错的
请问为什么?这两句的不同在哪?用 cout 怎么样才能对?