contenu d’un stream basé sur un tableau

Author:


Download


#include 
#include 
using namespace std;
int main()
{
  char *p;
  ostrstream stream_sortie;
  stream_sortie << "Exemple de tableau basé sur un stream";
  stream_sortie << 3.14 << hex << " ";
  stream_sortie.setf(ios::showbase);
  stream_sortie << 100 << ends;
  p = stream_sortie.str();
  cout << p;
  return 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *