Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop Other
Title: 4 Download
 Description: 1 programming: Design a class to represent Location location points on a Cartesian coordinate system, and then create two objects a and b in the main program, a requirement in the third quadrant, b in the second quadrant, calculated for a given the distance between the two points and then output the following format: a (x1, y1), b (x2, y2) Distance = d Tip:. i determine the location of a point in the Cartesian coordinate system, two coordinate values ( x, y). Therefore, the data members Location class has two, both x and y, and set it to private, foreign object classes do not allow direct access. . ii define three member functions, constructors Location (int initX, int initY) coordinates of the set point GetX () made the point abscissa GetY get ordinate points. iii. d2 = (x2-x1) 2+ (y2-y1) 2
 Downloaders recently: [More information of uploader 刘舰阳]
 To Search:
File list (Check if you may need any files):
 

4
.\4.cpp
.\4.exe
.\4.obj
.\tctemp.dat
.\tempfile.exe
    

CodeBus www.codebus.net