En ce momentGenshin ImpactValhallaBreath of the wildAnimal CrossingGTA 5Red dead 2
Liste des sujets
caractères fstream
Mister_Gredin
Niveau 4
09 avril 2005 à 18:45:39
bonjour
voila mon problème : je possède un fichier texte rempli ainsi: 0 0 1 2 etc dans ma source c++ j´ai un tableau comment faire pour dire que le 1er caractère correspond à la 1ere case du tableau, le 3° à la 2°, le 5° à la 3° et ainsi de suite
Mister_Gredin
Niveau 4
09 avril 2005 à 19:20:12
svp
pandamark
Niveau 6
09 avril 2005 à 19:31:58
Tu utilise seekg
ifstream nomdufichier; int machin;
nomdufichier.open(blabla);
nomdufichier.seekg(machin);
/ /tu extrait
machin+=2;
/ /tu extrait
/ /ect..
Mister_Gredin
Niveau 4
09 avril 2005 à 19:32:48
merci
pandamark
Niveau 6
09 avril 2005 à 19:38:43
Pour plus d´info http://www.cplusplus.com/ref/iostream/istream/seekg.html