-
2008010
编写一个线段类 MyLine,要求如下:
主要属性有: x ,y ;类型为Point (查看API)
编写构造方法,如 MyLine(Point p1 , Point p2)
编写5个成员方法。如:
检查线段是否位于第一象限check()…
求线段的长度 length() …
判断两条直线是否相交(另一线段作为参数)。
编写一点到该线段(或延长线)的距离
其他方法。
注:编写方法时,考虑利用Point类的方法
编写测试程序
(Write a segment class MyLine, requirements are as follows: The main attributes are: x, y type Point (see API) the preparation of construction methods, such as MyLine (Point p1, Point p2) prepared by five members of the method. Such as: Check whether the line segment in the first quadrant check () ... order to segment the length of the length () ... to determine whether the two straight lines intersect (the other segment as a parameter). The preparation of 1:00 to the line segment (or extension) of the distance from other methods. Note: The preparation method, consider using the Point class approach to preparing test program)
- 2009-12-24 14:03:10下载
- 积分:1
-
53327311
基于SYMBIAN手机操作系统,用C++实现的SIP会话发起协议引擎,(Based on SYMBIAN mobile operating system, the SIP session initiation protocol engine is implemented in C language.)
- 2019-04-02 03:12:20下载
- 积分:1
-
QtExcel
实现Qt程序对excel表格数据的快速读写,适用于数百条以上的数据记录。(Realize Qt program fast reading and writing of excel table data, suitable for more than hundreds of data records.)
- 2020-06-20 17:00:01下载
- 积分:1
-
embest provided under arm system architecture instruction set reference
embest提供的arm系统架构下的指令集参考-embest provided under arm system architecture instruction set reference
- 2022-03-22 02:59:44下载
- 积分:1
-
comm
一个很好用的通用串口通讯类,含例程,在VC下可执行(With a good general-purpose serial communications, including routines, under the executable in VC)
- 2008-08-23 12:48:30下载
- 积分:1
-
TestLev
说明: 可进行cosa格式水准网数据平差 ,闭合差计算, 粗差探测(It can carry out data adjustment, closure error calculation and gross error detection of cosa format leveling network.)
- 2019-03-03 14:43:29下载
- 积分:1
-
一个WEB服务器的程序,功能强大,不信你
一个WEB服务器的程序,功能强大,不信你-a Web server process, the powerful do not believe you will s
- 2023-06-12 12:05:34下载
- 积分:1
-
java 串口通讯 示例源码
简单的实现了一般的串口通讯
- 2017-09-22下载
- 积分:1
-
MySpringIoC
spring的基础入门IoC,
开发工具 IDEA, TomCat,SQL(Introduction tospring 1,
Development tools IDEA, TomCat, SQL)
- 2020-06-20 00:20:02下载
- 积分:1
-
java-jiatinglicai
本程序为家庭个人理财,java程序,主要实现家庭个人财产的管理,是一个不错的java课程设计程序.(the procedures for the family personal financial management, java procedures, the main family of personal property management, is a good java curriculum design process.)
- 2007-02-25 11:00:22下载
- 积分:1