文件名称:yuanxing
介绍说明--下载内容均来自于网络,请自行研究使用
编写C++程序完成以下功能:
(1)定义一个Point类,其属性包括点的坐标,提供计算两点之间距离的方法;
(2)定义一个圆形类,其属性包括圆心和半径;
(3)创建两个圆形对象,提示用户输入圆心坐标和半径,判断两个圆是否相交,并输出结果。
-The preparation of C++ program to accomplish the following functions: (1) defines a Point class, whose properties include the coordinates of points, providing the calculation method of the distance between two points (2) defines a circle class, whose properties include the center point and radius (3) to create two circular objects, prompts the user to enter the center point coordinates and radius to determine whether two circles intersect, and output.
(1)定义一个Point类,其属性包括点的坐标,提供计算两点之间距离的方法;
(2)定义一个圆形类,其属性包括圆心和半径;
(3)创建两个圆形对象,提示用户输入圆心坐标和半径,判断两个圆是否相交,并输出结果。
-The preparation of C++ program to accomplish the following functions: (1) defines a Point class, whose properties include the coordinates of points, providing the calculation method of the distance between two points (2) defines a circle class, whose properties include the center point and radius (3) to create two circular objects, prompts the user to enter the center point coordinates and radius to determine whether two circles intersect, and output.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
yuanxing.cpp