format
This commit is contained in:
20
display.c
20
display.c
@@ -1,17 +1,17 @@
|
||||
#include <stdio.h>
|
||||
#include "display.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void screenDisplay( unsigned short int **tab,int size)
|
||||
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 ");
|
||||
char element[7] ={' ','#','S','.','*','@','+'} ;
|
||||
for(int i=0;i<size;++i)
|
||||
// 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)
|
||||
{
|
||||
for(int j=0;j<size;++j)
|
||||
for (int j = 0; j < size; ++j)
|
||||
{
|
||||
printf("%c ",element[tab[i][j]]);
|
||||
printf ("%c ", element[tab[i][j]]);
|
||||
}
|
||||
puts("");
|
||||
}
|
||||
|
||||
puts ("");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user