love - programmed in C
-
/* try to execute this program without any error */ #include #include #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; } } Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
Needs refactoring. So many gotos indicates a lack of experience and may lead to an infinite loop and unexpected - or non-existent - results. "If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
-
Needs refactoring. So many gotos indicates a lack of experience and may lead to an infinite loop and unexpected - or non-existent - results. "If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
Sweet love is best made in assembler. Precision loving - highly approved by the other half, if done right. :-D -- Weiter, weiter, ins verderben. Wir müssen leben bis wir sterben. I blog too now[^]
-
Needs refactoring. So many gotos indicates a lack of experience and may lead to an infinite loop and unexpected - or non-existent - results. "If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
hi, I have to disagree.
if(time ==9.30) goto pub;
This is the best use of goto statement I've ever seen! :) There are more gotos and they all have good reason (cinema, sleep...) :-D best regards David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.) -
/* try to execute this program without any error */ #include #include #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; } } Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
I'd rather use PROLOG (PROgramming LOve lanGuage) then C in this case :-D best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)
-
renjith_sree wrote: try to execute this program without any error It won't compile much less run without error. :) No variable declarations and no college...at a very quick glance. Edit: Unless, of course, all this is defined somewhere in these headers #include #include renjith_sree wrote: Ninety-eight percent of the thrill comes from knowing that the thing you designed works Where does the other 2 percent come in? Gary Kirkham A working Program is one that has only unobserved bugs He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot Me blog, You read
Gary Kirkham wrote: Where does the other 2 percent come in? that 2 percentage comes from the perks** ;) isn't..??? Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
-
renjith_sree wrote: if(reply == "GAALI") For others, GAAALI is a HINDI word. It means the girl scolded the guy. (in the above context)
:cool: Firefox Extension for Code Project
This signature was created by "Code Project Quoter".Kant wrote: For others, GAAALI is a HINDI word. It means the girl scolded the guy ok ...if so, please include a #define GAAALI CHICK :) and compile.... Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
-
Needs refactoring. So many gotos indicates a lack of experience and may lead to an infinite loop and unexpected - or non-existent - results. "If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
i recommend you to take look at MFC library code. ;P Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
-
i recommend you to take look at MFC library code. ;P Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
You're scaring me...:~ But it wouldn't surprise me. After all, Bill got his start porting BASIC to the Altair8800 microcomputer. It's hard to break your early habits.;) "If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
-
You're scaring me...:~ But it wouldn't surprise me. After all, Bill got his start porting BASIC to the Altair8800 microcomputer. It's hard to break your early habits.;) "If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
:) Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
-
/* try to execute this program without any error */ #include #include #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; } } Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
Missing #include "mom.h" #include "college&pub.h" and most important one #include "Money.h" ;) ----------------------------- "I Think this Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk