我有个关于问题5-3的问题。它要求:vector-based solutionor a list-based one.通过创建if语句和重载函数来处理不同的数据类型,我已经解决了5-3问题,如下所示:
cout << "Please enter 1 if you would like to use vectors, or
(Bxk,Byk)A:[(1, 1]]=> one point: 1, at x coordinate, 0 at y coordinatea line with two point (0,0) and (1,1)
A:[(3, 3), (5,5)]=> one, 0)
when x = 2 at B line, y=2, at A line y =