#include "stdafx.h" //studio refuses to compile without this header file #include #include #include using namespace std; class line { private: float A,B,C; public: void GetValues(float a, float b, float c, float d) { A=d-b; B=a-c; C=(b*c)-(a*d); } float slope() { float slope = (-A/B); return slope; } float midpointx(float a, float c) { float midpoint = (a+c)/2; return midpoint; } float midpointy(float b, float d) { float midpoint = (b+d)/2; return midpoint; } float inputpoint() { float point; cout<<"Please input the x coordinate of the first point: "; cin>>point; return point; } float getA(){return A;} float getB(){return B;} float getC(){return C;} }; void main() { line geometry; float a=NULL; float b=NULL; float c=NULL; float d=NULL; while(a == NULL) { a=geometry.inputpoint(); if (!cin.good()) { cout<<"Please make a numerical input."<>b; if (!cin.good()) { cout<<"Please make a numerical input."<>c; if (!cin.good()) { cout<<"Please make a numerical input."<>d; if (!cin.good()) { cout<<"Please make a numerical input."<