Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. love - programmed in C

love - programmed in C

Scheduled Pinned Locked Moved The Lounge
help
14 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Renjith Ramachandran

    /* 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.

    G Offline
    G Offline
    Gary Kirkham
    wrote on last edited by
    #2

    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

    E R 2 Replies Last reply
    0
    • R Renjith Ramachandran

      /* 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.

      K Offline
      K Offline
      Kant
      wrote on last edited by
      #3

      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".

      R 1 Reply Last reply
      0
      • G Gary Kirkham

        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

        E Offline
        E Offline
        El Corazon
        wrote on last edited by
        #4

        Gary Kirkham wrote: Ninety-eight percent of the thrill comes from knowing that the thing you designed works Where does the other 2 percent come in? he'll tell you when he's done writing the headers to make it work.... _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

        1 Reply Last reply
        0
        • R Renjith Ramachandran

          /* 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.

          R Offline
          R Offline
          Roger Wright
          wrote on last edited by
          #5

          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

          J D R 3 Replies Last reply
          0
          • R Roger Wright

            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

            J Offline
            J Offline
            Jorgen Sigvardsson
            wrote on last edited by
            #6

            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[^]

            1 Reply Last reply
            0
            • R Roger Wright

              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

              D Offline
              D Offline
              DavidNohejl
              wrote on last edited by
              #7

              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.)

              1 Reply Last reply
              0
              • R Renjith Ramachandran

                /* 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.

                D Offline
                D Offline
                DavidNohejl
                wrote on last edited by
                #8

                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.)

                1 Reply Last reply
                0
                • G Gary Kirkham

                  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

                  R Offline
                  R Offline
                  Renjith Ramachandran
                  wrote on last edited by
                  #9

                  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.

                  1 Reply Last reply
                  0
                  • K Kant

                    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".

                    R Offline
                    R Offline
                    Renjith Ramachandran
                    wrote on last edited by
                    #10

                    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.

                    1 Reply Last reply
                    0
                    • R Roger Wright

                      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

                      R Offline
                      R Offline
                      Renjith Ramachandran
                      wrote on last edited by
                      #11

                      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.

                      R 1 Reply Last reply
                      0
                      • R Renjith Ramachandran

                        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.

                        R Offline
                        R Offline
                        Roger Wright
                        wrote on last edited by
                        #12

                        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

                        R 1 Reply Last reply
                        0
                        • R Roger Wright

                          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

                          R Offline
                          R Offline
                          Renjith Ramachandran
                          wrote on last edited by
                          #13

                          :) 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.

                          1 Reply Last reply
                          0
                          • R Renjith Ramachandran

                            /* 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.

                            T Offline
                            T Offline
                            ThatsAlok
                            wrote on last edited by
                            #14

                            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

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups