Des tableaux de tableaux de caracteres, c'est possible?

Arnaud16022 Messages postés 1329 Date d'inscription vendredi 15 août 2003 Statut Membre Dernière intervention 16 juin 2010 - 11 mars 2004 à 22:37
Arnaud16022 Messages postés 1329 Date d'inscription vendredi 15 août 2003 Statut Membre Dernière intervention 16 juin 2010 - 12 mars 2004 à 18:53
Hello!
je voudrais savoir s'il y a moyen de faire un tableau a 2 dimensions qui puisse enregistrer ca:

exemple:
char ** tab={"hello","hello2","kgklhgklhlkjhlkhl"};
// ben ben bien sur ca marche pas...

c'est a dire un tableau de chaines, ces chaines étant dee longueur vatiable ( de 1 à 256caracteres par exemple).

Merci!!!

3 réponses

BruNews Messages postés 21040 Date d'inscription jeudi 23 janvier 2003 Statut Modérateur Dernière intervention 21 août 2019
11 mars 2004 à 22:52
char *tab[3] = {"hello","hello2","kgklhgklhlkjhlkhl"};

ciao...
BruNews, Admin CS, MVP Visual C++
0
cs_djl Messages postés 3011 Date d'inscription jeudi 26 septembre 2002 Statut Membre Dernière intervention 27 novembre 2004 7
11 mars 2004 à 23:17
const char *tab[]={"hello","hello2","kgklhgklhlkjhlkhl"};
0
Arnaud16022 Messages postés 1329 Date d'inscription vendredi 15 août 2003 Statut Membre Dernière intervention 16 juin 2010 2
12 mars 2004 à 18:53
Trop cool ! ca marche et c'est tout con! merci bcp.
BB
0
Rejoignez-nous