c++ 判断点是否在线上
初——类的学习与调用
源代码如下:
#include "stdafx.h"
#include <iostream>
#include <math.h>;
using namespace std;
class Point{
public:
Point(float xx = 0, float yy = 0)
{
x = xx;
y = yy;
}
Point(Point &p);
float getX(){
return x; }
float getY() {
return y; }
private