https://pastebin.ubuntu.com/p/HWcJmbyjCj/https://pastebin.ubuntu.com/p/7Nv6HMN3GS/题目为海伦公式求三角形面积,我输入int a,b,c时s就为0,把a,b,c改为float就可以了,难道在sqrt里不能自动类型转换么?
你可以强制转