Affichage

cs_anthony65
Messages postés
13
Date d'inscription
vendredi 17 novembre 2000
Statut
Membre
Dernière intervention
28 mai 2007
- 6 mars 2007 à 16:54
cs_anthony65
Messages postés
13
Date d'inscription
vendredi 17 novembre 2000
Statut
Membre
Dernière intervention
28 mai 2007
- 6 mars 2007 à 19:19
Bonjour,

Je cherche a mettre au point un petit programme en java qui lira en parametre une chaine de caracteres et qui l'affichera caractere par caractere. Les caracteres affichaient seront des gros caracteres et seront affiches les uns en dessous des autres a raison d'un caractere a la fois comme le montre l'exemple :

Exemple d'execution :

Entrere une chaine de caractere : aA

    aaaa
  a       a
    aaaaa
 a         a
 a        aa
   aaaa   aa

      AA
         A
      A  A
      A  A
      A  A
      AAA
     A     A
  AAA AAA

Je n'arrive pas a trouver l'algorithme, je ne sais pas si quelqu'un pourrait m'aider avec cela
Merci encore.

1 réponse

cs_anthony65
Messages postés
13
Date d'inscription
vendredi 17 novembre 2000
Statut
Membre
Dernière intervention
28 mai 2007

6 mars 2007 à 19:19
J'avais oublier de preciser que je disposais de deux matrice correspondant a mes
differentes caractere

{ char maju[26][MAXLIGNE]=
{{0x18,0x08,0x14,0x14,0x14,0x1C,0x22,0x77,0x0,0x0},//A
{0x7C,0x22,0x22,0x3C,0x22,0x22,0x22,0x7C,0x0,0x0},//B
{0x1E,0x22,0x40,0x40,0x40,0x40,0x22,0x1C,0x0,0x0},//C
{0x7C,0x22,0x22,0x22,0x22,0x22,0x22,0x7C,0x0,0x0},//D
{0x7E,0x22,0x28,0x38,0x28,0x20,0x22,0x7E,0x0,0x0},//E
{0x7E,0x22,0x28,0x38,0x28,0x20,0x20,0x70,0x0,0x0},//F
{0x1E,0x22,0x40,0x40,0x4E,0x42,0x22,0x1C,0x0,0x0},//G
{0xE7,0x42,0x42,0x7E,0x42,0x42,0x42,0xE7,0x0,0x0},//H
{0x3E,0x08,0x08,0x08,0x08,0x08,0x08,0x3E,0x0,0x0},//I
{0x07,0x02,0x02,0x02,0x02,0xE2,0x4C,0x38,0x0,0x0},//J
{0x77,0x26,0x28,0x30,0x28,0x24,0x22,0x77,0x0,0x0},//K
{0x70,0x20,0x20,0x20,0x20,0x22,0x22,0x7E,0x0,0x0},//L
{0x77,0x36,0x36,0x2A,0x2A,0x22,0x22,0x77,0x0,0x0},//M
{0xE7,0x62,0x52,0x52,0x4A,0x4A,0x46,0xE6,0x0,0x0},//N
{0x3C,0x42,0x42,0x42,0x42,0x42,0x42,0x3C,0x0,0x0},//O
{0x7C,0x22,0x22,0x3C,0x20,0x20,0x20,0x70,0x0,0x0},//P
{0x3C,0x42,0x42,0x42,0x42,0x42,0x42,0x3D,0x0,0x0},//Q
{0x7C,0x22,0x22,0x3C,0x30,0x28,0x24,0x77,0x0,0x0},//R
{0x3C,0x42,0x40,0x3C,0x02,0x02,0x42,0x3C,0x0,0x0},//S
{0x7F,0x49,0x08,0x08,0x08,0x08,0x08,0x3E,0x0,0x0},//T
{0x77,0x22,0x22,0x22,0x22,0x22,0x22,0x1C,0x0,0x0},//U
{0x77,0x22,0x22,0x22,0x14,0x14,0x14,0x08,0x0,0x0},//V
{0x77,0x22,0x22,0x2A,0x2A,0x36,0x36,0x77,0x0,0x0},//W
{0x77,0x22,0x14,0x08,0x08,0x14,0x22,0x77,0x0,0x0},//X
{0x77,0x22,0x14,0x08,0x08,0x08,0x08,0x1C,0x0,0x0},//Y
{0x3E,0x22,0x04,0x08,0x08,0x10,0x22,0x3E,0x0,0x0}};//Z
char minu[26][MAXLIGNE]=
{{0x00,0x00,0x3C,0x42,0x3E,0x42,0x46,0x3B,0x0,0x0},//a
{0x60,0x20,0x2C,0x32,0x22,0x22,0x22,0x7C,0x0,0x0},//b
{0x00,0x00,0x3A,0x46,0x40,0x40,0x42,0x3C,0x0,0x0},//c
{0x06,0x02,0x3A,0x46,0x42,0x42,0x46,0x3B,0x0,0x0},//d
{0x00,0x00,0x3C,0x42,0x7E,0x40,0x40,0x3E,0x0,0x0},//e
{0x0E,0x10,0x7E,0x10,0x10,0x10,0x10,0x7E,0x0,0x0},//f
{0x00,0x00,0x3B,0x46,0x42,0x42,0x46,0x3A,0x02,0x3C},//g
{0x60,0x20,0x2C,0x32,0x22,0x22,0x22,0x77,0x0,0x0},//h
{0x08,0x00,0x38,0x08,0x08,0x08,0x08,0x3E,0x0,0x0},//i
{0x08,0x00,0x78,0x08,0x08,0x08,0x08,0x08,0x48,0x30},//j
{0x60,0x20,0x2F,0x24,0x38,0x28,0x24,0x67,0x0,0x0},//k
{0x18,0x08,0x08,0x08,0x08,0x08,0x08,0x3E,0x0,0x0},//l
{0x00,0x00,0xD2,0x6D,0x49,0x49,0x49,0xED,0x0,0x0},//m
{0x00,0x00,0x6C,0x32,0x22,0x22,0x22,0x77,0x0,0x0},//n
{0x00,0x00,0x3C,0x42,0x42,0x42,0x42,0x3C,0x0,0x0},//o
{0x00,0x00,0x6C,0x32,0x22,0x22,0x22,0x3C,0x20,0x70},//p
{0x00,0x00,0x3B,0x46,0x42,0x42,0x46,0x3A,0x02,0x07},//q
{0x00,0x00,0x6E,0x30,0x20,0x20,0x20,0x7C,0x0,0x0},//r
{0x00,0x00,0x3E,0x42,0x3C,0x02,0x42,0x7C,0x0,0x0},//s
{0x00,0x20,0x7C,0x20,0x20,0x20,0x22,0x1C,0x0,0x0},//t
{0x00,0x00,0x66,0x22,0x22,0x22,0x26,0x1B,0x0,0x0},//u
{0x00,0x00,0xE7,0x42,0x24,0x24,0x18,0x18,0x0,0x0},//v
{0x00,0x00,0x41,0x41,0x49,0x55,0x55,0x22,0x0,0x0},//w
{0x00,0x00,0x42,0x24,0x18,0x18,0x24,0x42,0x0,0x0},//x
{0x00,0x00,0x77,0x22,0x22,0x14,0x14,0x08,0x08,0x38},//y
{0x00,0x00,0x3E,0x24,0x08,0x10,0x22,0x3E,0x0,0x0}};//z
char vide[MAXLIGNE] = {0};
0