Exemplo n.º 1
0
//--Programme principal--
int main() {
  int jnaiss = 0, mnaiss = 0, anaiss = 0, jpred = 0, mpred = 0, apred = 0;
  int degreplus_global = 0, degreplus_amour = 0, degreplus_travail = 0,
      degreplus_argent = 0;
  srand(time(NULL));

  acquisition(&jnaiss, &mnaiss, &anaiss, &jpred, &mpred, &apred);
  degreplus_global = (calcul_predictions(
      jnaiss, mnaiss, anaiss, jpred, mpred, apred, &degreplus_amour,
      &degreplus_travail, &degreplus_argent));
  affichage(degreplus_global, degreplus_amour, degreplus_travail,
            degreplus_argent);
  printf("\n\nMerci d'avoir utilise EXIAVENIR !!!\n\n    Que les astres vous "
         "protegent !!!\n\n      Et revenez si vous avez un autre doute sur "
         "votre avenir !!\n\n");

  return 0;
}
Exemplo n.º 2
0
//gerer les fuites
int main()
{
  t_home  fourmilliere;
  //t_lst_chemins   *paths;
  if (acquisition(&fourmilliere) == -1)
  {
    printf("erreur lors de l'aquisition");
    return (0);
  }
  if (traitement(&fourmilliere) == -1)
  {
    printf("erreur lors du traitement");
    return (0);
  }
/*  if (impression(paths) == -1)
  {
    printf("erreur lors de l'impression");
    return (0);
  }*/
  return(0);
}