[C / C++]
Fermé
Jean
-
7 mai 2006 à 12:56
Sethpolma Messages postés 66 Date d'inscription mercredi 25 juin 2003 Statut Membre Dernière intervention 8 mars 2007 - 7 mai 2006 à 16:00
Sethpolma Messages postés 66 Date d'inscription mercredi 25 juin 2003 Statut Membre Dernière intervention 8 mars 2007 - 7 mai 2006 à 16:00
1 réponse
Sethpolma
Messages postés
66
Date d'inscription
mercredi 25 juin 2003
Statut
Membre
Dernière intervention
8 mars 2007
15
7 mai 2006 à 16:00
7 mai 2006 à 16:00
Avec un switch ! Méthode sûrement pas très fine, mais qui devrait marcher. Exemple :
char a;
cin >> a;
switch(a)
{
case E:
cout << "£";
break;
case A:
cout << "@";
break;
// Tous les autres cas...
}