Algorithme

Fermé
maxwell - 12 févr. 2007 à 15:24
alezan1 Messages postés 10 Date d'inscription lundi 12 février 2007 Statut Membre Dernière intervention 12 février 2007 - 12 févr. 2007 à 16:58
Bonjour,

Je dois écrire un algo de décodage basé sur l'algo de Viterbi.
Voici l'énoncé de mon exo :
http://cjoint.com/data/bDaTjs5faT.htm

Ma question est la suivante.
Comment récupére-t-on la valeur du paramètre x ?

Merci

1 réponse

alezan1 Messages postés 10 Date d'inscription lundi 12 février 2007 Statut Membre Dernière intervention 12 février 2007 3
12 févr. 2007 à 16:58
Voici un petit exemple en java qui affiche la date plus l'argument

public static void main(String []args) {

// Make sure the command
// line argument was passed in
if(null == args || args.length < 1) {
// Command line argument
// doesn't exist, so exit with
// an error flag
System.exit(1);
}

// Timestamp the message
Date now = new Date();
String message = now.toString();
message += ": ";

// Extract the only command line
// argument from the first element
// of the array
message += args[0];
System.out.println(message);
}
0