1.  >>  河南成教 / C++程序设计
 河南成教 / C++程序设计


3[设计题]
 在三角形类TRI实现两个函数,功能是输入三个顶点坐标判断是否构成三角形
    #include
    #include
    class point{
    private:float x,y;
    public:point(float a,float b){x=a;y=b;}
      point( ){x=0;y=0;}    ,
      void set(float a,float b){x=a;y=b;}
      float getx( ){return x;}
      float gety( ){return y;}
    };
    class tri{
point x,y,z;
float s1,s2,s3;
    public;...settri(....);//用于输入三个顶点坐标
         ....test(....);//用于判断是否构成三角形
    };  请写出两个函数的过程(如果需要形式参数,请给出形参类型和数量,以及返回值
类型)
  积分
 参考答案:
 佳题速递:
  • 1[单选题] <p style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; TEXT-INDENT: 21pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri; FONT-SIZE: 10.5pt; tab-stops: 147.75pt 296.25pt 455.25pt"><span style="FONT-FAMILY: 宋体">微分方程</span><img style="VERTICAL-ALIGN: middle" width="107" height="20" src="http://www.jxjypt.cn/Content/Scripts/ewebeditor10/uploadfile/exam/201302/20130226101736245001.gif"><span style="FONT-FAMILY: 宋体">的通解是</span><span>&nbsp;&nbsp;&nbsp;</span><span style="FONT-FAMILY: 宋体">(&nbsp;&nbsp; </span><span style="FONT-FAMILY: 宋体">)</span></p> <p style="TEXT-ALIGN: left; TEXT-INDENT: 21pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri; FONT-SIZE: 10.5pt; tab-stops: 132.0pt 254.25pt 455.25pt"><span>A</span><span style="FONT-FAMILY: 宋体">.</span><img style="VERTICAL-ALIGN: middle" width="84" height="23" src="http://www.jxjypt.cn/Content/Scripts/ewebeditor10/uploadfile/exam/201302/20130226101736541002.gif"><span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>B</span><span style="FONT-FAMILY: 宋体">.</span><img style="VERTICAL-ALIGN: middle" width="84" height="23" src="http://www.jxjypt.cn/Content/Scripts/ewebeditor10/uploadfile/exam/201302/20130226101736260003.gif"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p> <p style="TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; TEXT-INDENT: 21pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri; FONT-SIZE: 10.5pt; tab-stops: 132.0pt 254.25pt 455.25pt"><span>C</span><span style="FONT-FAMILY: 宋体">.</span><img style="VERTICAL-ALIGN: middle" width="78" height="23" src="http://www.jxjypt.cn/Content/Scripts/ewebeditor10/uploadfile/exam/201302/20130226101736380004.gif"><span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>D</span><span style="FONT-FAMILY: 宋体">.</span><img style="VERTICAL-ALIGN: middle" width="89" height="23" src="http://www.jxjypt.cn/Content/Scripts/ewebeditor10/uploadfile/exam/201302/20130226101736259005.gif"></p> A.A B.B C.C D.D高等数学Ⅰ
  • 9[填空题] j、q、x只与齐齿呼、撮口呼韵母相拼,不与合口呼韵母( )。普通话教育
  • 10[综合题] 什么是“怯场”?口才艺术与社交礼仪
  • 强制审计是指根据被审计单位的意愿而进行的审计 审计基础与实务
  • 下列哪类食物可以有效地降血脂,预防心脑血管疾病() 中医养生康复学
  • 从“招聘广告”开始的求职,往往已经丧失太多机会,因为: 职业生涯规划