This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package TD6; | |
public class Compression implements ICompression { | |
/* encode une chaine de caractère c de longueur L de la facon suivante : | |
* cFLAGL | |
* L max = 9 | |
* Si flag est rencontré on encode ça de la facon suiante : FLAG0 | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <signal.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
#include <string.h> | |
// pour tuer le processus faire killall -9 <nom du process> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GNU_SOURCE | |
#include <sys/wait.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <string.h> | |
#include <signal.h> | |
#include <sys/time.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <setjmp.h> | |
volatile /* utilisation du mot clé volatile lorsqu'on compile en -O3 */ int i = 0; | |
jmp_buf b; | |
void f( void ) { | |
longjmp(b, ++i); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double tsp_prog_dyn(point *V, int n, int *Q) { | |
/* | |
Version programmation dynamique du TSP. Le résultat (la tournée | |
optimale) doit être écrit dans la permutation Q, tableau qui doit | |
être alloué avant l'appel. On renvoie la valeur de la tournée | |
optimale ou -1 s'il y a eut une erreur (pression de 'q' pour sortir | |
de l'affichage). Une fois que votre programme arrivera à calculer | |
une tournée optimale (à comparer avec tsp_brute_force() ou | |
tsp_brute_force_opt()), il sera intéressant de dessiner à chaque | |
fois que possible le chemin courant avec drawPath(V,n,Q). La |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// TSP - BRUTE-FORCE | |
// | |
// -> la structure "point" est définie dans tools.h | |
static double dist(point A, point B){ | |
return sqrt((B.x-A.x)*(B.x-A.x)+(B.y-A.y)*(B.y-A.y)); | |
} | |
static double value(point *V, int n, int *P){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* API pour RPG paradize | |
* @author Dysta | |
*/ | |
class RPG_Parser { | |
/** | |
* HTML code | |
* @var string | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fr.ubordeaux.ao; | |
public class Circle extends Shape { | |
private int radius; | |
public int getRadius() { | |
return this.radius; | |
} | |
public void setRadius(int radius) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fr.ubordeaux.ao.domain; | |
import java.io.IOException; | |
public interface BasketRepository { | |
public void save(Basket b, String filename) throws IOException; | |
public void save(Basket b); | |
} |
OlderNewer