文件名称:1
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:970byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
设计一个描述点的类,其中包含一对坐标点数据成员、一个求两个点之间距离的友元函数和显示坐标点的成员函数,并编程测试。
解题思路:
计算两点(a,b)和(c,d)之间的距离,依据勾股定理可得公式:
并定义坐标点类的友元函数来计算两点间的距离。
-Design a descr iptive point of the class, which includes a pair of coordinates of points, data members, one for the distance between two points of the Friends of element function, and display coordinates of member functions, and programming test. Problem-solving approach: calculation of two points (a, b) and (c, d) distance between the Pythagorean Theorem based on the availability of formula: and define the coordinates of points, type of friend function to calculate the distance between two points.
解题思路:
计算两点(a,b)和(c,d)之间的距离,依据勾股定理可得公式:
并定义坐标点类的友元函数来计算两点间的距离。
-Design a descr iptive point of the class, which includes a pair of coordinates of points, data members, one for the distance between two points of the Friends of element function, and display coordinates of member functions, and programming test. Problem-solving approach: calculation of two points (a, b) and (c, d) distance between the Pythagorean Theorem based on the availability of formula: and define the coordinates of points, type of friend function to calculate the distance between two points.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
两点间的距离.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.