搜索资源列表
2
- 窗建一个CPoint类,代表平面直角坐标系中的点,创建构造函数和运算符重载函数, 运算符重载为类重载(非友元重载),可以实现计算两个点之间的距离。可以根据需要 加入自己的成员变量或成员函数 用3点来代表一个三角形, 输入三个点的坐标,实现判断此三角形是不是直角三角形,并输出此三角形的周长。 可以根据需要加入自己的成员变量或成员函数
li
- 普通函数作友元:声明普通函数distance用来计算两点距离,定义一个Circle类,两圆心的距离用普通函数distance来计算。这个函数需要访问Circle类的私有数据x和y,为此,将distance声明为Circle类的友元函数。主函数如下定义:-Common function for friend: Statement used to calculate the normal function of distance from two points define a Circle cla
point
- 设计点类,并带友元函数,函数实现了点之间的距离运算。简单使用,有助与初学这的学习-Designed point type, and with the Friends of element function, function implementation of computing the distance between points. Easy to use, help with the beginner in this study
EditDistance
- C#的计算编辑距离的代码。可指定需要计算的区间以及操作代价函数。算法用动态规划方法实现。-C# Edit distance calculation code. Calculation required to specify the range and operating cost function. Algorithm using dynamic programming method.
testm5
- 先分别输入两个点的横坐标和纵坐标,然后利用函数计算出两点之间的距离-First enter the horizontal and vertical coordinates of two points , and then use the function to calculate the distance between two points
kmeans
- 利用k-means算法进行聚类,K-means算法以欧式距离作为相似度测度,它是求对应某一初始聚类中心向量V最有分类,使得评价指标J最小。算法采用误差平方和准则函数作为聚类准则函数。-Algorithm using k-means clustering, K-means algorithm Euclidean distance as a similarity measure, it is the pursuit of the vector V corresponding to a initial
examples
- 机器人声纳测距,用声纳得到机器人的姿态与目标的距离。内置函数在aria文件包里面-The robot sonar ranging sonar posture of the robot and the target distance. Built-in functions inside the in aria document package
SGSCode
- 用C#语言模拟三国杀中的武将人物及其技能,要求如下: (1) 定义一个接口 f,里面声明“杀:kill()”,“闪:parry()”,“桃:eatingpeach()”,“装备:arm()”,“锦囊:using-wisdom()”五个函数,声明两个常量,最小和最大攻击距离; (2) 定义一个抽象类,武将hero,里面定义两个方法,一个是抽象方法“技能:capability()”,一个是具体的方法“决斗:duel()”; (3) 实现至少两个武将类(一男一女:赵云、黄月英),继承
AiiPn
- C++ A星算法实现八数码问题,启发函数为每一个将牌与其目标位置之间距离(不考虑夹在其间的将牌)的总和。-C++ A star algorithm eight digital, distance heuristic function sum (without considering sandwiched therebetween trump) between each of the brand to its target location