lecture reussi

futur essai test toutes images + ajout random
This commit is contained in:
pierre-geeraert
2016-12-09 11:19:34 +01:00
committed by GitHub
parent 8a03be6e49
commit 8189f22710
+8 -4
View File
@@ -8,11 +8,12 @@ int main(int argc, char *argv[])
FILE* fichier = NULL;
int caractereActuel = 0;
int lineCounter = 0;
fichier = fopen("image2", "r");
fichier = fopen("image1", "r");
@@ -35,12 +36,15 @@ int main(int argc, char *argv[])
switch(caractereActuel)
{
case 49:
case 49: //1
printf("%c",254);
break;
case 48:
case 48: //0
printf("%c",240);
break;
case '\t': //tab
//printf("er");
break;
default:
printf("\n");
lineCounter++;
@@ -50,7 +54,7 @@ break;
} while (lineCounter < 4 ); // On continue tant que compteurglobal n'a pas finis le fichier
} while (lineCounter < 24 ); // On continue tant que compteurglobal n'a pas finis le fichier