Friday, January 27, 2006

Romeo's C program

This is a simple C program which shows the activities of collge Romoes. One of my friends (Rajendra, thanks), sent it to me. I think it is pretty good to post in my blog.

Some programmers, if you are looking at it, might find some errors. I haven't tried to work with it at all. If you want to run it, you can give it a try.


Happy programming.

-----------------------------------------------------------------------------
#include‹std_isd_pco.h›
#include‹love.h›
#define MAAL beautiful_lady

main()
{
goto college;
scanf("100%",&ladies);

if(lady == MAAL)
line++;
while( !reply )
{

printf("I Love U");

scanf("100%",&reply);

}

if(reply == "GAALI")
main(); /* go back and repeat the process */

else if(reply == "SANDAL ")
exit(1);



else if(reply == "I Love U")
{
lover = MAAL;
love = (heart*)malloc(sizeof(lover));
}

goto restaurant;

restaurant:
{
food++;
smile++;
pay->money = lover->money;
return(college);
}

if(time==2.30)
goto cinema;

cinema:
{
watch++;
touch++ ;
if(intermission)
{
coke++;
smoke++;

}
}

if(time ==6.00)
goto park;

park:
{
for(time=6.30;time<=8.30;time+=0.001) kiss = kiss+1; } free(lover); return(home); if(time == 9.30) goto pub; pub: { friends++; party++; booze++; smoke++; if(pub.close()) { pay->bill;
come->out;
}
}

if (highly-intoxicated)
goto friendsroom;
else
{
sweetpan++;
polo++;
goto home;
}

friendsroom:
{
goto sleep;
}

home:
{
if(mom.shouts ())
{
reason=(combinedstudy || projectwork ||
friendsbday);
say-reason;
}
if(dad.shouts())
shut-yourmouth;

call-lover;
if(phone->voice==(lover_dad->voice ||
lover_mom->voice))
{
hang++;
}
else if(phone->voice==lover->voice)
{
for(time=12:30;time<=1.30;time+=0.001)
{
say-ILuvU;
scanf("100%",&reply); /* "I Love U" already stored in reply */
}
}
goto sleep;
}

sleep:
{
*(dream)=love;
}
}

No comments: