说明:设计一个描述点的类,其中包含一对坐标点数据成员、一个求两个点之间距离的友元函数和显示坐标点的成员函数,并编程测试。
解题思路:
计算两点(a,b)和(c,d)之间的距离,依据勾股定理可得公式:
并定义坐标点类的友元函数来计算两点间的距离。
-Design a descr iptive point of the class, which includes a pair of coordinates of point <fanxiu> 在 2025-02-22 上传
| 大小:1kb | 下载:0
说明:这是我做的一个计算器,用Borland C++Builder 6编译通过-This is what I do a calculator, using Borland C Builder 6 compiler through <陈友东> 在 2025-02-22 上传
| 大小:20kb | 下载:0
说明:推箱子的游戏代码,基本实现推箱子游戏的各种功能-Sokoban game code, the basic realization of the various functional Sokoban game <dangyan> 在 2025-02-22 上传
| 大小:1.83mb | 下载:0
说明:设计一个类模板,用于对数组进行排序、查找、求元素和,并以整数数组和实数组进行编程测试。-The design of a class template, used to sort the array, find, and elements and, and an integer array and is programmed to test the array. <fanxiu> 在 2025-02-22 上传
| 大小:1kb | 下载:0
说明:设计一个密码类,编程实现比较两个密码对象是否一致-Design type a password, programming password compare two objects to achieve consistency <fanxiu> 在 2025-02-22 上传
| 大小:1kb | 下载:0
说明:设计一个三角形类,包含表示三条边的数据成员,编程实现求两个三角形面积之和。-The design of a triangle, are contained, said three edges of the data members, programming for area and two triangles. <fanxiu> 在 2025-02-22 上传
| 大小:1kb | 下载:0
说明:文明3的资料篇在重装系统后由于注册表信息丢失不能打开,于是我便做了这个小程序,放到文明3目录下运行就可以了-Civilization Part 3 information system in the heavy loss as a result of the registry information can not be opened, so I made this small program, put civilization 3 d <陈友东> 在 2025-02-22 上传
| 大小:151kb | 下载:0
说明:编写一个程序,有一个汽车类vehicle,它具有一个需传递参数的构造函数,类中的数据成员车轮个数wheels和车重weight是保护类型;一个轿车类car是vehicle的公有派生类,其中包含载人数passenger;一个卡车类truck是vehicle的公有派生类,其中包含载人数passenger和载重量payload。每个类都有相关数据的输出方法。-The preparation of a program, there is a c <fanxiu> 在 2025-02-22 上传
| 大小:1kb | 下载:0
说明:高考信息系统 高考成绩查询 用户登录及使用 及数据库管理-Information systems college entrance exam results and the use of query the user registry and database management <fairyyang> 在 2025-02-22 上传
| 大小:2.1mb | 下载:0