fix deplacement out of range

This commit is contained in:
2024-12-13 11:06:44 +01:00
parent 2c2d446f74
commit 1d2190e55d
3 changed files with 15 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
void screenDisplay( unsigned short int **tab,int size)
{
puts("0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 ");
//puts("0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 ");
char element[7] ={' ','#','S','.','*','@','+'} ;
for(int i=0;i<size;++i)
{