Algorithme

maxwell -  
alezan1 Messages postés 10 Date d'inscription   Statut Membre Dernière intervention   -
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   Statut Membre Dernière intervention   3
 
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