Description: 1, design a program, of which three categories, namely CBank, BBank and GBank, respectively, for the Chinese banking, business banking and agricultural banking. Each class contains a private data balance, used to store the bank deposits of savers in the number, while a friend function used to calculate the total depositors in the three the number of total deposits in banks. 2, design a program, of which there are 2 categories, Point class for the point class, including two individual and private data are x and y, that the coordinates of points, line for line class categories, with three individual and private data are a, b and c, that straight line equation ax+ by+ c = 0. There is also a friend function dist, used to calculate a point to the straight line distance. The distance between the point and straight line formula is as follows: (Hint: This function is entitled The Application of the Yuan)
To Search:
- [VCWord] - VC++ Control Word production reports, we
- [cluster] - k-means clustering algorithm c language
File list (Check if you may need any files):
p01.cpp
p02.cpp