• 1.3-17:计算三角形面积


    #include
    #include
    #include
    using namespace std;
    int main()
    {
    	float x1,y1,x2,y2,x3,y3;
    	cin>>x1>>y1>>x2>>y2>>x3>>y3;
    	double c=sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));
    	double b=sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3));
    	double a=sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3));
    	double p=(a+b+c)/2;
    	double s=sqrt(p*(p-a)*(p-b)*(p-c));
    	cout<
  • 相关阅读:
    Simulink 自动代码生成:手写代码替换生成代码Code Replacement Tool使用
    图片接口文档怎么写
    为什么高精度机器人普遍使用谐波减速器而不是普通减速器?
    深度学习模型试跑(十四):Bytetrack(vs2019 训练+trt推理部署)
    前端框架-echarts
    TI/德州仪器 TPS3808G30DBVT 微处理器
    【操作系统】2.2 操作系统的调度
    Revit中“梁标注”怎么操作?有插件能实现吗?
    virtual box 导入vdi虚拟系统文件.
    速卖通按关键字搜索商品
  • 原文地址:https://blog.csdn.net/todaynodream/article/details/126505498