Can anyone see what is the problem here?
I am getting the message:
C:\DEV-C_~1\LIB\\libmingw32.a(main.o)(.text+0x8e): undefined reference to `WinMain@16'
And i am useing Dev-C++
-------------------------------------------------------------------------------
#include <stdio.h>
Main()
{
int x1, x2, y1, y2, m ;
printf ( "To find the slope of your line enter the following: \n" ) ;
printf ( "in the form (x,y) the first point \n" ) ;
scanf ( "%fd%fd" ,&x1 ,&y1 ) ;
printf ( "In the form (x,y) the second point \n" ) ;
scanf ( "%fd%fd" ,&x2 ,&y2 ) ;
m = (y1 - y2) / (x1 - x2);
getch ();
}
-----------------------------------------------------------------------------
Note: i am still new and this seems hard to me.
thanx,
Dave.