bonjour,
je souhaite manipuler des fichiers que j'ai intitulé:
toto0.jpg
toto1.jpg
...
totoN.jpg
mes déclarations:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 char nb; char nom[] = "toto"; char extension[] = ".jpg"; char Name[40];Mais l'instruction Name[strlen(nom)] = nb; ne fonctionne pas, je dois pas m'y prendre comme il faut??
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 // ici N = 5 for(nb='0';nb<'5';nb++) { strcpy(Name, nom); Name[strlen(nom)] = nb; strcat(Name, extension); buf = ReadImage(Name, &x, &y); }
Partager