Funny C++ coding (technically funny)

since this is a tech forum , i am posting a technically funny C++ coding :D

i read it some where wanted to share with u people

[quote=", post:, topic:"]

#include "STD ISD.h"

#include "college.h"

#define MAAL beautiful_lady

main( )

{

goto college;

scanf("100%",&ladies);

if(lady = = MAAL)

sugar++;

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++;

sugar++;

pay->money = lover->money;

return(college);

}

if(time = = 3.00)

goto park;

park:

{

for(time=4.00;time<=5.00;time+=0.001)

kiss = kiss+1;

}

free(lover);

return(home);

}

[/quote]

ok compile it . lets see the output..!

There are many problems with this program. The label "college" is not defined, therefore, program will crash on first line. Memory is never freed for variable pointer "love". Thus leading to memory leakage. Calling of "main();" on stack. After repeating the same loop, program will crash with stack overflow. Which can also lead to hacking of whole computer due to stack overflow error.

There are few more minor mistakes and errors in programming :)

It is a technical review, not the review of your heart ;)

[quote=", post:, topic:"]

There are many problems with this program.

It is a technical review, not the review of your heart ;)

[/quote]

yup thanks :P … BTW u missed some mistakes, look again ;)