Design
aa0802.txt
Associated article: Star Encoding
Tags: Design
Published source code accompanying the article by Mark Nelson in which he examines pre-compression transformations with Star encoding.
Algorithm Alley
by Mark R. Nelson
Listing One
string get_token( ifstream &file )
{
string token;
while ( file )
{
char c;
file >> c;
if ( isalpha( c ) || c == ''' )
token += c;
else if ( token.size() )
return token;
}
return token;
}
Listing ...


