Affichage tableau C++
Résolu
alena20
Messages postés
23
Date d'inscription
Statut
Membre
Dernière intervention
-
alena20 Messages postés 23 Date d'inscription Statut Membre Dernière intervention -
alena20 Messages postés 23 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
J'ai un problème d'affichage du tableau:
#include <iostream>
using namespace std;
int main()
{
int Tableau [3]={1,2,3};
cout << Tableau << endl;
}
Et j'ai recu le resultat: 0x7fff6242abf0
Merci par avance!
Cordialement,
Alena
J'ai un problème d'affichage du tableau:
#include <iostream>
using namespace std;
int main()
{
int Tableau [3]={1,2,3};
cout << Tableau << endl;
}
Et j'ai recu le resultat: 0x7fff6242abf0
Merci par avance!
Cordialement,
Alena
A voir également:
- Afficher un tableau en c
- Comment afficher un tableau en c - Meilleures réponses
- Afficher tableau c - Meilleures réponses
- Tableau word - Guide
- Trier un tableau excel - Guide
- Tableau ascii - Guide
- Impossible d'afficher le rapport de tableau croisé dynamique sur un rapport existant ✓ - Forum Excel
- Affichage tableau sous C - Forum C
je confirme...
// ostream_iterator example
#include <iostream> // std::cout
#include <iterator> // std::ostream_iterator
#include <vector> // std::vector
#include <algorithm> // std::copy
int main ()
{
std::vector<int> myvector;
int str1[]={1, 2, 3};
myvector.assign (str1,str1+3);
std::ostream_iterator<int> out_it (std::cout,", ");
std::copy ( myvector.begin(), myvector.end(), out_it );
return 0;
}