Lecture écriture basé sur un tableau de stream avec istrstream

Author:


Download


#include 
#include 
using namespace std;
int main()
{
  char *p = "Bienvenu sur le test N°1254";
  istrstream ins(p);
  char ch;

  while (!ins.eof())
  {                       // Afficher les données binaires
    ins.get(ch);
    cout << hex << (int) ch << ' ';
 }
  return 0;
}

Leave a Reply

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