35 lines
620 B
C
35 lines
620 B
C
![]() |
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main(void){
|
||
|
FILE *fic = fopen("reitne.txt", "r");
|
||
|
char lettre[256];
|
||
|
int i;
|
||
|
|
||
|
if(fic == NULL){
|
||
|
exit(1);
|
||
|
}
|
||
|
|
||
|
while(fgets(lettre, 255, fic) != NULL){
|
||
|
for(i=0;i<256;i++){
|
||
|
|
||
|
if (lettre[i] == 'x' && lettre[i-1] == 0){
|
||
|
/* printf("%d\n", lettre[i-1]/lettre[i+1]);*/
|
||
|
printf("Bonjour");
|
||
|
|
||
|
}else if(fgets(lettre,255,fic)){
|
||
|
printf("");
|
||
|
|
||
|
}
|
||
|
}
|
||
|
printf("%s", lettre);
|
||
|
}
|
||
|
|
||
|
printf("\n");
|
||
|
fclose(fic);
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
|
||
|
|