[comp.lang.c] Tor Rustad <to********@hot mail.comwrote:
and I have no clue what a composition analyzer is.
void analyze_composi tion( char *composition ) {
if( strstr(composit ion,"Four score and seven years ago") ) {
printf( "Ah, this seems to be the Gettysburg Address.\n" );
}
else if( strstr(composit ion,"What is the capital of Assyria?") ) {
printf( "This appears to be a Monty Python sketch, old chap.\n" );
}
else if( strstr(composit ion,"lcc-win32 can do that") ) {
printf( "Um, it looks like a comp.lang.c post by Jacob Navia...\n" );
}
else {
printf( "D'oh. I'm sure it's a lovely composition, whatever it is.\n" );
}
}
--
C. Benson Manica | I appreciate all corrections, polite or otherwise.
cbmanica(at)gma il.com |
----------------------| I do not currently read any posts posted through
sdf.lonestar.or g | Google groups, due to rampant unchecked spam.