Wednesday, November 16, 2005

program for u in C language

//Valentine's Day Program //

#include
#include

#define BEAUTY beautiful_lady
struct heart *lover; //object derived from heart structure
float time;
int sugar;

main()
{
college();
time=getSystemHour(&Sys);
if(time = = 3.00)
park();
}

int college()
{
static int ladies;
scanf("100%d",&ladies);
if(lady = = BEAUTY)
sugar++;
do
{
printf("I Love U");
scanf("100%",&reply);
}while( !reply );
if(reply = = "IDIOT")
return(1) // go back to main and repeat the process
else if(reply = = "SANDAL ")
exit(1);
else if(reply = = "I Love U")
{
lover = BEAUTY;
love = (heart*)malloc(sizeof(lover)); //allocate memory in the heart
}
restaurant(); // restaurant function called
return(0); //returns to main()
}

int restaurant()
{
static int food;
food++;
sugar++;
&n! bsp; pay->money = lover->money;
return(0); //returns to college()
}

int park()
{
for(time=4.00;time<=5.00;time+=0.001)
kiss = kiss+1;
}

No comments: