31 lines
716 B
C
31 lines
716 B
C
#include <stdio.h>
|
|
#include "defs.h"
|
|
|
|
double distancia(struct coord c, struct coord e);
|
|
struct coord fuxir(struct coord c, struct coord e);
|
|
int screen();
|
|
|
|
int main(void) {
|
|
/* printf("Iniciando.\n"); */
|
|
|
|
/* struct coord cazador = {1,1}; */
|
|
/* struct coord elefante = {3,3}; */
|
|
|
|
/* double d = distancia(cazador, elefante); */
|
|
/* printf("Distancia: %lf\n", d); */
|
|
|
|
/* struct coord nova; */
|
|
/* nova = fuxir(cazador, elefante); */
|
|
|
|
/* printf("Nova localización do elefante:\n"); */
|
|
/* printf("x %i\n", nova.x); */
|
|
/* printf("y %i\n", nova.y); */
|
|
/* double novaD = distancia(cazador, nova); */
|
|
/* printf("Nova Distancia: %lf\n", novaD); */
|
|
|
|
screen();
|
|
|
|
|
|
return 0;
|
|
}
|