海伦公式:

l为半周长,s为面积float float l = (a + b + c) / 2; float s = sqrt(l*(l - a)*(l - b)*(l - c));
相关文章
相关标签/搜索