debut pile

This commit is contained in:
2024-01-08 14:05:33 +01:00
parent c4bc163fe6
commit cffb424f64
29 changed files with 442 additions and 7 deletions

27
DEV1.1/TP21/hexadecimal.c Normal file
View File

@@ -0,0 +1,27 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char const *argv[])
{
FILE* f;
int i;
int n = 0;
int y;
char c[100];
f=fopen(argv[1],"r");
while(feof(f)==1){
for(i=0;i<y;i++){
if( c[i] ='\n'){
printf("\n");
n=n+10;
}else{
printf("%07d ",n);
fread(&c,3,1,f);
printf("%c ", c[i]);
}
}
}
fclose(f);
return EXIT_SUCCESS;
}