文件名称:yuanxing
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1002byte
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
编写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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.