#include
#include
#include
/*
the sky happily grows a shining cat
the yard quickly spins the child
a cloud flys the planet
a friendly child sings a friendly mother
the cloud crys the cloud
a happy yard over a planet spins the smiling yard
a sky spins the dog
a bright tree thoughtfully rides the shining yard
a happy cloud rides the friendly tree
a shining sky laughs a kite
a cat plays the butterfly
the bright butterfly sadly skips the bright planet
*/
void display_verb()
{
switch(rand()%15)
{
case 0:
printf ("walks ");
break;
case 1:
printf ("plays ");
break;
case 2:
printf ("grows ");
break;
case 3:
printf ("flys ");
break;
case 4:
printf ("rides ");
break;
case 5:
printf ("shines ");
break;
case 6:
printf ("smiles ");
break;
case 7:
printf ("runs ");
break;
case 8:
printf ("skips ");
break;
case 9:
printf ("laughs ");
break;
case 10:
printf ("crys ");
break;
case 11:
printf ("swims ");
break;
case 12:
printf ("sings ");
break;
case 13:
printf ("spins ");
break;
case 14:
printf ("works ");
break;
}
}
void display_adverb()
{
switch(rand()%14)
{
case 0:
printf ("quickly ");
break;
case 1:
printf ("happily ");
break;
case 2:
printf ("brightly ");
break;
case 3:
printf ("slowly ");
break;
case 4:
printf ("lazily ");
break;
case 5:
printf ("sadly ");
break;
case 6:
printf ("thoughtfully ");
break;
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
break;
}
}
void display_noun()
{
switch(rand()%15)
{
case 0:
printf ("yard ");
break;
case 1:
printf ("child ");
break;
case 2:
printf ("tree ");
break;
case 3:
printf ("kite ");
break;
case 4:
printf ("fence ");
break;
case 5:
printf ("bike ");
break;
case 6:
printf ("flower ");
break;
case 7:
printf ("sky ");
break;
case 8:
printf ("cloud ");
break;
case 9:
printf ("butterfly ");
break;
case 10:
printf ("mother ");
break;
case 11:
printf ("river ");
break;
case 12:
printf ("planet ");
break;
case 13:
printf ("cat ");
break;
case 14:
printf ("dog ");
break;
}
}
void display_adjetive()
{
switch(rand()%14)
{
case 0:
printf ("happy ");
break;
case 1:
printf ("bright ");
break;
case 2:
printf ("green ");
break;
case 3:
printf ("shining ");
break;
case 4:
printf ("friendly ");
break;
case 5:
printf ("laughing ");
break;
case 6:
printf ("smiling ");
break;
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
break;
}
}
void display_article()
{
switch(rand()%2)
{
case 0:
printf ("a ");
break;
case 1:
printf ("the ");
break;
}
}
void display_preposition()
{
switch(rand()%7)
{
case 0:
printf ("of ");
break;
case 1:
printf ("over ");
break;
case 2:
printf ("under ");
break;
case 3:
printf ("behind ");
break;
case 4:
printf ("on ");
break;
case 5:
printf ("in frount of ");
break;
case 6:
printf ("with ");
break;
}
}
void display_prepositional_phrase()
{
switch(rand()%3)
{
case 0:
display_preposition();
display_article();
display_adjetive();
display_noun();
break;
case 1:
case 2:
break;
}
}
void display_objective_clause()
{
display_article();
display_adjetive();
display_noun();
}
void display_verb_clause()
{
display_adverb();
display_verb();
}
void display_subject_clause()
{
display_article();
display_adjetive();
display_noun();
display_prepositional_phrase();
}
void display_line()
{
display_subject_clause();
display_verb_clause();
display_objective_clause();
printf ("\n");
}
void display_verse()
{
display_line();
display_line();
display_line();
display_line();
}
void skip_line()
{
printf ("\n");
}
void initialize_random_number_generator()
{
srand( (unsigned)time( NULL ) );
}
void display_poem()
{
skip_line();
skip_line();
skip_line();
display_verse();
skip_line();
display_verse();
skip_line();
display_verse();
skip_line();
}
void main(void)
{
initialize_random_number_generator();
display_poem();
}
This is the weirdest poem on the site! And a really good one.