I'm getting syntax errors I can't find. If anyone can see them, please help. The coding is nowhere near done but I'd rather debug as I went along so I know where the trouble is.
Oh, and what's "call of overload sqrt(int) is ambiguous" mean?
Code:
#include <iostream>
#include <stdlib.h>
using namespace std;
int DistanceFormula (int x1, int y1, int x2, int y2, int x3, int y3);
int HeronsTheoremArea (int sideA, int sideB, int sideC);
int Perimeter (int sideA, int sideB, int sideC);
int TriangleCheck (int sideA, int sideB, int sideC);
int ErrorTrap (int sideA, int sideB, int sideC);
int main(int argc, char *argv[])
{
int sideA;
int sideB;
int sideC;
int x1;
int x2;
int x3;
int y1;
int y2;
int y3;
ErrorTrap ( sideA, sideB, sideC)
cout<< "Please enter coordinates of point A." <<endl;
cin>> x1 >>y1;
cout<<"Please enter coordinates of point B."<<endl;
cin>> x2 >>y2;
cout<<"Please enter coordinates of point C."<<endl;
cin>> x3 >>y3;
while (x1<-100||x1>100)
{
cout<<"Please enter between 100 and -100."<<endl;
continue;
}
DistanceFormula (x1, x2, x3, y1, y2, y3)
sideA=sqrt(x2-x1)+(y2-y1);
sideB=sqrt(x3-x2)+(y3-y2);
sideC=sqrt(x1-x3)+(y1-y3);
}
system("PAUSE");
return 0;
}