Remplir un tableau d'un fich txt en C++
Fermé
rredjem
Messages postés
1
Date d'inscription
mercredi 1 février 2012
Statut
Membre
Dernière intervention
2 février 2012
-
2 févr. 2012 à 09:01
Char Snipeur Messages postés 9696 Date d'inscription vendredi 23 avril 2004 Statut Contributeur Dernière intervention 3 octobre 2023 - 2 févr. 2012 à 10:22
Char Snipeur Messages postés 9696 Date d'inscription vendredi 23 avril 2004 Statut Contributeur Dernière intervention 3 octobre 2023 - 2 févr. 2012 à 10:22
A voir également:
- Remplir un tableau d'un fich txt en C++
- Tableau croisé dynamique - Guide
- Tableau ascii - Guide
- Organigramme a remplir word - Guide
- Tableau word - Guide
- Comment remplir un tableau excel reçu par mail - Forum Excel
1 réponse
Char Snipeur
Messages postés
9696
Date d'inscription
vendredi 23 avril 2004
Statut
Contributeur
Dernière intervention
3 octobre 2023
1 297
2 févr. 2012 à 10:22
2 févr. 2012 à 10:22
fstream fin.open("sauve.txt",std::in);
int tab[N][M];
for(int i=0;i<N;++i)
for(int j=0;j<M;++j)
{ fin>>tab[i][j];}
https://en.cppreference.com/w/cpp/io/basic_fstream pour t'aider.
int tab[N][M];
for(int i=0;i<N;++i)
for(int j=0;j<M;++j)
{ fin>>tab[i][j];}
https://en.cppreference.com/w/cpp/io/basic_fstream pour t'aider.