Projet

Général

Profil

« Précédent | Suivant » 

Révision 378

Ajouté par Rayan REZKI il y a presque 3 ans

Rectification Q3.

Voir les différences:

branch/REZKI/sp4a12/main.c
#include <strings.h>
#include "trame.h"
#include<math.h>
#define rayon_terre 6370
#define R 6370
#define PI 3.14159265
typedef struct {
float latitud;
float longitud;
float lat;
float lon;
}position;
typedef struct {
......
float decode_trame_latitude(char *ch)
{
float lat;
lat = latitude(ch);
return lat;
position p1;
p1.lat = latitude(ch);
return p1.lat;
}
float decode_trame_longitude(char *ch)
{
float lon;
lon = longitude(ch);
return lon;
position p2;
p2.lon = longitude(ch);
return p2.lon;
}
float calcul_distance(position p1, position p2)
{
float a;
}
int trame_cmp(char * trame,char * type)
{
int i;
......
return 0;
return 1;
}
//Fonction ? modifier !!!!!
void traitement(char * trame)

Formats disponibles : Unified diff