求一个C语言算法:已知三角形的三个顶点的坐标,求三角形面积
求一个C语言算法:已知三角形的三个顶点的坐标,求三角形面积
C语言
C语言
其他人气:874 ℃时间:2020-01-29 02:05:51
优质解答
//三个顶点坐标是6个参数.#include#include double S_triangle(double ax,double ay,double bx,double by,double cx,double cy){ double mx=cx-ax,my=cy-ay,nx=bx-ax,ny=by-ay; double Lm= sqrt(mx*mx+my*my),Ln= ...
我来回答
类似推荐
猜你喜欢
- 1Tom listen didi music weekend to last the 连词成句(各位帮帮忙)
- 2for the first time that加句子 the first time的区别
- 3下列短语的结构类型
- 4That had talked only for a few minutes _____they found they were of different opinions.
- 5东风化工厂有一个圆柱形油罐,从里面量它的底面半径是4米,高是20米.油罐内已注入占容积3/4的石油.如果每立方米石油重700千克,这些石油重多少千克?
- 6用结实的不同意思造句(身体好,使物体劳固)
- 7lose my
- 8最后一头战象有感
- 9在一个减法算式里,被减数减数与差的和是18.已知差是减数的5分之2,减数是多少,差是多少?
- 10完形填空The blog by Chinese star Xu Jinglei is now the most popular in the world 英语名校学案上的