文件名称:1.1
介绍说明--下载内容均来自于网络,请自行研究使用
C++设计一个表示平面直角坐标系的点的位置Location类,提供函数得到该点的坐标、计算两个点之间的距离,并且能够自动统计坐标系中点的个数。
测试要求:在主程序中创建两个对象A和B,按如下格式输出两个点的坐标和两个点的距离。
A(x1, y1), B(x2, y2), Distance=d
-C++ to design a plane rectangular coordinate system, said the positions of points Location class provides functions to get the coordinates of points, calculate the distance between two points, and automatically the number of statistical mid-point coordinates. Test requirements: in the main program creates two objects A and B, two points in the following format output coordinates and the distance between two points. A (x1, y1), B (x2, y2), Distance = d
测试要求:在主程序中创建两个对象A和B,按如下格式输出两个点的坐标和两个点的距离。
A(x1, y1), B(x2, y2), Distance=d
-C++ to design a plane rectangular coordinate system, said the positions of points Location class provides functions to get the coordinates of points, calculate the distance between two points, and automatically the number of statistical mid-point coordinates. Test requirements: in the main program creates two objects A and B, two points in the following format output coordinates and the distance between two points. A (x1, y1), B (x2, y2), Distance = d
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1.1.cpp
C++上机作业.doc
C++上机作业.doc