搜索资源列表
circle
- 定义一个圆类,计算圆的面积和周长。 要求:分别用成员函数和友元函数来求圆的面积和周长。 -Class defines a circle, calculate area and circumference of a circle. Requirements: member function respectively, and a friend function to find area and circumference of a circle.
Thepreparationofcomplex
- 编写复数类scomplex,用友元函数重载,实现浮点数和复数的加法。-The preparation of complex class scomplex, UF element function overloading to achieve floating-point numbers and complex numbers addition.
jtyyyy
- 静态成员与友元学习友元函数的定义和原理。 • 学习静态数据成员和静态成员函数的使用。 • 学习静态成员代替全局变量实现对象间的共享。 -Learning friend function definitions and principles. • Learn to use static data members and static member functions. • Learning static members instead
point
- 设计并测试点类Point,其数据成员是直角坐标系的点坐标,友元函数distance用来计算两点间的距离。-Design and test Point kind of Point, the Point coordinate data member is rectangular coordinate system, short of the friend function is used to calculate the distance between two points.
3-1-13055604
- 1. 定义一个圆类,计算圆的面积和周长。 要求:分别用成员函数和友元函数来求圆的面积和周长。