Hi all, I can not seem to get this to compile. Any ideas on what could be tripping it up? This is a .h file that I am trying to create on my own
struct point
{
double x;
double y;
};
struct line
{
struct point p1;
struct point p2;
};
double length(line *1); //function prototype
double distance(point *p1, point *p2); //function prototype
Thanks for any help you can offer
it says there is a syntax error before the a token on my function prototype lines
struct point
{
double x;
double y;
};
struct line
{
struct point p1;
struct point p2;
};
double length(line *1); //function prototype
double distance(point *p1, point *p2); //function prototype
Thanks for any help you can offer
it says there is a syntax error before the a token on my function prototype lines