-
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
-
library administaration system, is a text based interactive program that keeps r...
图书馆管理系统, 可以维护印刷图书和电子图书. 其中包括借书,还书,续借,以及用户管理功能-library administaration system, is a text based interactive program that keeps reading and executing commands from the standard input(the keyborad) until exit command is issued.
- 2022-02-13 01:28:18下载
- 积分:1
-
ProgressBarTest
进度条显示,可以改变进度条的显示样式。可以自定义图片为进度条的按钮样式。(Progress bar shows the progress bar can change the display style. You can customize the picture as the progress bar button style.)
- 2013-06-26 11:23:06下载
- 积分:1
-
用springMvc写的高校选课系统
高校选课系统,用spring mvc写的,分为三个模块,分别是老师,学生和管理员,每个模块的操作都不同。功能包括管理员添加课程,老师选择教一门课,同学选课。结课后老师给成绩。数据库用的是mysql,数据库连接用的是mybatis。界面用的是html,功能基本实现。
- 2022-03-06 00:47:57下载
- 积分:1
-
Test_f1
check that .dex with wrong magic is rejected.
- 2013-11-18 23:49:09下载
- 积分:1
-
bfg
说明: 解决git仓库包含超过100m的文件的问题(remove something bigger than 100m from git local cache)
- 2019-05-23 19:35:54下载
- 积分:1
-
和讯发评论 和讯发评论 和讯发评论 和讯发评论
和讯发评论 和讯发评论 和讯发评论 和讯发评论 -And hearing the comments and hearing-fat-fat-fat comments and hearing comments and hearing comments and hearing-fat-fat comments and hearing comments and hearing-fat-fat comments
- 2022-01-31 23:11:59下载
- 积分:1
-
cypClockDemo
一个利用多线程写的显示时钟窗口的小程序.是我刚学JAVA时的一份心得!(use a multi-threaded write the clock showed a small window procedure. Yes, I am just learning a Java experience!)
- 2006-06-02 18:37:47下载
- 积分:1
-
j2me有关电话簿的实现
本程序实现一个电话簿,可以完成记录的添加、删除、修改、查询、浏览。每条记录由姓名和电话构成,数据表示方式:姓名?电话。
- 2023-06-04 14:50:03下载
- 积分:1
-
交通灯管理系统
模拟实现十字路口的交通灯管理系统逻辑,具体需求如下: Ø 异步随机生成按照各个路线行驶的车辆。例如: 由南向而来去往北向的车辆 ----&n
- 2022-02-21 05:11:12下载
- 积分:1