#define MAX 5

typedef struct{
  int x;
  int y;
} Point;

typedef struct{
  Point a;
  Point b;
} Line;

float distance(Point *p1, Point *p2);
void input(Line *lptr);
float longest(Line p[], int len);

int main(){
  int i;
  Line lines[MAX];
  float d;
  for(i = 0; i < MAX; i++){
    printf("L%02d: ", i + 1);
  return 0;
void input(Line *lptr){
    scanf("%d %d %d %d",&lptr->a.x,&lptr->a.y,&lptr->b.x,&lptr->b.y);
float distance(Point *p1, Point *p2){
    return sqrt(pow(p1->x - p2->x,2)+pow(p1->y - p2->y,2));
float longest(Line p[], int len){
    float l,max=0 ;
    int i;
    for(i = 0; i < MAX; i++){
    return max;

Popular posts from this blog

เทคนิค ชนะ เกมเศรษฐี 14 ตารวด!!! ( Let's get Rich )

Using Google Chrome Inspect Element to Analyze the website

Easy way to download whole youtube play list and convert them to mp3