Langage C : concernant la concaténation
Résolu/Fermé
Smash34
Messages postés
13
Date d'inscription
jeudi 7 avril 2005
Statut
Membre
Dernière intervention
9 avril 2005
-
7 avril 2005 à 14:07
blurk Messages postés 486 Date d'inscription vendredi 16 avril 2004 Statut Membre Dernière intervention 15 mars 2009 - 7 avril 2005 à 15:10
blurk Messages postés 486 Date d'inscription vendredi 16 avril 2004 Statut Membre Dernière intervention 15 mars 2009 - 7 avril 2005 à 15:10
A voir également:
- Langage C : concernant la concaténation
- Langage ascii - Guide
- Langage binaire - Guide
- Pascal langage - Télécharger - Édition & Programmation
- Langage pascal - Télécharger - Édition & Programmation
- Langage basic gratuit - Télécharger - Édition & Programmation
1 réponse
blurk
Messages postés
486
Date d'inscription
vendredi 16 avril 2004
Statut
Membre
Dernière intervention
15 mars 2009
160
7 avril 2005 à 15:10
7 avril 2005 à 15:10
Salut,
Faaacile !
et voilà! essai1.txt, essai2.txt, etc.
cordialement
Faaacile !
for(j=0;j<3;j++) { /////// /////////////// //// char nomfichier[80]; sprintf(nomfichier,"%s%d%s","essai",J,".txt"); /////////////////////////// FILE *f1; f1=(FILE *)fopen(nomfichier,"w"); // attention, changement ici fgets(chaine,80,stdin); for(i=0;i<10;i++) { fputs(chaine,f1); } } fclose(f1);
et voilà! essai1.txt, essai2.txt, etc.
cordialement