#ifndef SINGLE
//  An adapted ObjectSpace example for use with SGI STL

#include <iostream.h>
#include <algo.h>

#ifdef MAIN
#define istmit1_test main
#endif
#endif
int istmit1_test(int, char**)
{
  cout<<"Results of istmit1_test:"<<endl;
  char buffer [100];
  int i = 0;
  cin.unsetf(ios::skipws); // Disable white-space skipping.
  cout << "Please enter a string: ";

#ifndef ACORN_CFRONT
  istream_iterator<char, ptrdiff_t> s(cin);
#else
  istream_iterator<char> s(cin);
#endif

  while(cin.good() && *s != '\n')
    buffer[i++] = *s++;
  buffer[i] = '\0'; // Null terminate buffer.
  cout << "read " << buffer << endl;
  return 0;
}
