说明:定义一个矩形类,其属性包括左上角和右下角两个点,提供计算面积的方法; -Define a rectangle class, its properties include the upper left and lower right corner of two points to provide the calculation method of the area <佟笠> 在 2025-04-30 上传
| 大小:1kb | 下载:0
说明:创建两个圆形对象,提示用户输入圆心坐标和半径,判断两个圆是否相交,并输出结果。-Create two circular objects, prompts the user to enter the center point coordinates and radius to determine whether two circles intersect, and output. <佟笠> 在 2025-04-30 上传
| 大小:1kb | 下载:0
说明:编写一个函数,计算两者的重量和。
double TotalWeight(Boat& b, Car& c) 利用友元概念-Write a function to calculate both the weight and. double TotalWeight (Boat & b, Car & c) the use of the concept of friend <佟笠> 在 2025-04-30 上传
| 大小:1kb | 下载:0