Real Life for C++ Programmers
by radavies1uk
Posted: 19 March 2006 Word Count: 48 Summary: I don't know if this is a valid poem form or not, but I was playing about a few years back and had this. Any opions on this? It kind of links with discussion on the Select * FROM piece. Related Works: SELECT Star FROM Me.Heart |
|
#include <RL4CPPP.h>
LOC PullAtBar(LOC Bar, HUMAN Self)
{
int X = MAX_NUM_SENTENCES;
int Y = UGLY_POINTS;
while(Self.Lonely)
{
printf("I need someone...");
if(Person.Approaches)
{
do
{
BuyDrink(Person);
BuyDrink(Self);
CurrentSubject = random(X)
printf("%s",Sentences[CurrentSubject]);
while(Person.Happy && Sentences[CurrentSubject])
{
printf("%s",Sentences[CurrentSubject++]);
scanf("%s", &Person.CurrentSentence);
AnalyseAttitude(Person);
Self.Lonely --;
Y--;
}
AnalyseAttitude(Self);
Self.Pissed++;
Person.Pissed++;
if(Y > 0)
Self.Pulled = false;
else
Self.Pulled = true;
} while(Self.Respect && !Self.Pulled);
}
else
{
Self.Lonely++;
}
if(Self.Money <= 0)
{
if(Self.Pulled)
return Person.Home;
else
return Self.Home;
}
}
}
LOC PullAtBar(LOC Bar, HUMAN Self)
{
int X = MAX_NUM_SENTENCES;
int Y = UGLY_POINTS;
while(Self.Lonely)
{
printf("I need someone...");
if(Person.Approaches)
{
do
{
BuyDrink(Person);
BuyDrink(Self);
CurrentSubject = random(X)
printf("%s",Sentences[CurrentSubject]);
while(Person.Happy && Sentences[CurrentSubject])
{
printf("%s",Sentences[CurrentSubject++]);
scanf("%s", &Person.CurrentSentence);
AnalyseAttitude(Person);
Self.Lonely --;
Y--;
}
AnalyseAttitude(Self);
Self.Pissed++;
Person.Pissed++;
if(Y > 0)
Self.Pulled = false;
else
Self.Pulled = true;
} while(Self.Respect && !Self.Pulled);
}
else
{
Self.Lonely++;
}
if(Self.Money <= 0)
{
if(Self.Pulled)
return Person.Home;
else
return Self.Home;
}
}
}
Favourite this work | Favourite This Author |
|
Other work by radavies1uk:
...view all work by radavies1uk
|