Bonjour, quelqu'un aurait il une piste pour bien afficher un tableau de characteres à deux dimensions ? Merci.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
//#define LIGNES 
//#define COLONNES
 
void afficher (char (*tabChar)[10])
{
	//ASCII a->z (97,122); A->Z (66,90)
	int i, j;
	for(i=0; i<4; i++)
	{
		for(j=0; j<10; j++)
		{
			printf("%c\t", tabChar[i][j]);
		}
		printf("\n");
	}
	printf("\n");
}
 
int main (void)
{
	int i,j;
 	int tabInt[10] = {1,2,3,4,5,6,7,8,9};
 	char tabChar[4][10] = { {'a', 'b', 'c', 'd', 'e', 'f', 'g','h','i'},{'j', 'k', 'l', 'm', 'n', 'o', 'p','q','r'}, {'s', 't', 'u', 'v', 'w', 'x', 'y','z','\0'} };
 	afficher (&tabChar[4][10]);
 	return 0;
 }
Je veux que ce soit ce tableau qui s'affiche :
Nom : TabChar.png
Affichages : 1031
Taille : 6,2 Ko

Merci d'avance pour vos conseils.