/************************************************************************************************/
/*			        LEDA Lab: String Input					*/
/************************************************************************************************/

#include <LEDA/core/string.h>			// for using the string data type of LEDA
#include <iostream>

using namespace leda;

#if defined(LEDA_STD_IO_HEADERS)
using std::cout;
using std::cin;
using std::endl;
#endif

int main() 
{
	const char delim ='.';

	string s;
	char c;

      cout << " Give an input and press . to end: " << endl;

	s.read(delim); 					// read the expression that the reader provides...
	cout << "****" << s << "****" << endl; 		// print the expression that was just given...
	cout.flush();

	int count = 0;

	while ( count < s.length() ) {
		c = s[count++];
		cout << "I just read the character **" << c << "**" << endl;
	}
}

