文件名称:test
介绍说明--下载内容均来自于网络,请自行研究使用
写一个CTriangle类,要求可以接受 CTriangle(y,x)形式的构造,创建在坐标系中的直角三角形,实现+运算,并且能够处理键盘连续输入若干个(少于十个)三角形,并且连加(相加时候三角形边长长度相加,方向同第一个三角形)。输入0后结束并输出最后得出的三角形的三个坐标值。-Write a CTriangle class, demand is acceptable CTriangle (y, x) form of the constructor, create a right triangle in the coordinate system to achieve the+ operator, and can handle a number of continuous input keyboard (less than ten) triangle, and even increase (sum of the triangle side length of the sum of the time, the direction of a triangle with the first). After the end of the input 0 and output the conclusion that the three coordinates of the triangle.
相关搜索: CTriangle
(系统自动生成,下载前可以参看下载内容)
下载文件列表
test.cpp