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. Heeeeeeeelp me :((

Heeeeeeeelp me :((

Scheduled Pinned Locked Moved The Lounge
debugginglearning
8 Posts 5 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.
  • M Offline
    M Offline
    Mukesh Kumar Gupta
    wrote on last edited by
    #1

    Please debug it for me and if you can explain what this code will do I can pay you mooooorr than anybody :(( :(( :(( #include #include #define Cute beautiful_lady main() { goto college; scanf("100%",&ladies); if(lady ==Cute ) 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 =Cute ; love = (heart*)malloc(sizeof(lover)); } goto restaurant; restaurant: { food++; smile++; pay->money = lover->money; return(college); } if(time==2.30) goto cinema; cinema: { watch++; if(intermission) { coke++; Popecorn++; } } 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; } } I was born intelligent...education ruined me. :((

    L J N 4 Replies Last reply
    0
    • M Mukesh Kumar Gupta

      Please debug it for me and if you can explain what this code will do I can pay you mooooorr than anybody :(( :(( :(( #include #include #define Cute beautiful_lady main() { goto college; scanf("100%",&ladies); if(lady ==Cute ) 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 =Cute ; love = (heart*)malloc(sizeof(lover)); } goto restaurant; restaurant: { food++; smile++; pay->money = lover->money; return(college); } if(time==2.30) goto cinema; cinema: { watch++; if(intermission) { coke++; Popecorn++; } } 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; } } I was born intelligent...education ruined me. :((

      L Offline
      L Offline
      Le centriste
      wrote on last edited by
      #2

      It does not surprise me that you cannot understand this code as you cannot understand NO PROGRAMMING QUESTION IN THE LOUNGE either. Unless this is some kind of lame joke :suss: -------- "I say no to drugs, but they don't listen." - Marilyn Manson -- modified at 7:37 Friday 3rd February, 2006

      M 1 Reply Last reply
      0
      • M Mukesh Kumar Gupta

        Please debug it for me and if you can explain what this code will do I can pay you mooooorr than anybody :(( :(( :(( #include #include #define Cute beautiful_lady main() { goto college; scanf("100%",&ladies); if(lady ==Cute ) 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 =Cute ; love = (heart*)malloc(sizeof(lover)); } goto restaurant; restaurant: { food++; smile++; pay->money = lover->money; return(college); } if(time==2.30) goto cinema; cinema: { watch++; if(intermission) { coke++; Popecorn++; } } 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; } } I was born intelligent...education ruined me. :((

        L Offline
        L Offline
        Le centriste
        wrote on last edited by
        #3

        HAHAHAHA I think I understand. I did not read the previous posts. Slow morning.... -------- "I say no to drugs, but they don't listen." - Marilyn Manson

        M 1 Reply Last reply
        0
        • L Le centriste

          HAHAHAHA I think I understand. I did not read the previous posts. Slow morning.... -------- "I say no to drugs, but they don't listen." - Marilyn Manson

          M Offline
          M Offline
          Mukesh Kumar Gupta
          wrote on last edited by
          #4

          And i was just scared by your previous post. :(( I was born intelligent...education ruined me. :((

          1 Reply Last reply
          0
          • M Mukesh Kumar Gupta

            Please debug it for me and if you can explain what this code will do I can pay you mooooorr than anybody :(( :(( :(( #include #include #define Cute beautiful_lady main() { goto college; scanf("100%",&ladies); if(lady ==Cute ) 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 =Cute ; love = (heart*)malloc(sizeof(lover)); } goto restaurant; restaurant: { food++; smile++; pay->money = lover->money; return(college); } if(time==2.30) goto cinema; cinema: { watch++; if(intermission) { coke++; Popecorn++; } } 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; } } I was born intelligent...education ruined me. :((

            J Offline
            J Offline
            jonansie
            wrote on last edited by
            #5

            Boy, you have bad coding habbits! And for love's sake, for this kind of project you should use C# or something object-oriented: class Girl : Person { public static List GetAll() { .... } public string GetReply(string input) { .... } } class MainClass { public static void Main(string[] args) { foreach(Girl girl in Girl.GetAll()) { switch(girl.GetReply("Hey, wanna go out?")) { ..... } } } } etc. You got it all wrong from the start, sorry to say so... :( Also, you should comment your code! ;););) :-D

            M 1 Reply Last reply
            0
            • J jonansie

              Boy, you have bad coding habbits! And for love's sake, for this kind of project you should use C# or something object-oriented: class Girl : Person { public static List GetAll() { .... } public string GetReply(string input) { .... } } class MainClass { public static void Main(string[] args) { foreach(Girl girl in Girl.GetAll()) { switch(girl.GetReply("Hey, wanna go out?")) { ..... } } } } etc. You got it all wrong from the start, sorry to say so... :( Also, you should comment your code! ;););) :-D

              M Offline
              M Offline
              Mukesh Kumar Gupta
              wrote on last edited by
              #6

              Thanks for your great input, please continue with such really useful ideas. with the help of great CPins like you I will definitely learn programming... ;P PS: Still I m unable to understand my code and you have given me more work in !@#$^%^%&^%%%$ language... :(( :(( :(( :((

              1 Reply Last reply
              0
              • L Le centriste

                It does not surprise me that you cannot understand this code as you cannot understand NO PROGRAMMING QUESTION IN THE LOUNGE either. Unless this is some kind of lame joke :suss: -------- "I say no to drugs, but they don't listen." - Marilyn Manson -- modified at 7:37 Friday 3rd February, 2006

                M Offline
                M Offline
                Michael P Butler
                wrote on last edited by
                #7

                Michel Prévost wrote:

                Unless this is some kind of lame joke

                Certainly looks like a joke. Kind of funny in a sterotypical often repeated way Michael CP Blog [^] Development Blog [^] -- modified at 9:33 Friday 3rd February, 2006

                1 Reply Last reply
                0
                • M Mukesh Kumar Gupta

                  Please debug it for me and if you can explain what this code will do I can pay you mooooorr than anybody :(( :(( :(( #include #include #define Cute beautiful_lady main() { goto college; scanf("100%",&ladies); if(lady ==Cute ) 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 =Cute ; love = (heart*)malloc(sizeof(lover)); } goto restaurant; restaurant: { food++; smile++; pay->money = lover->money; return(college); } if(time==2.30) goto cinema; cinema: { watch++; if(intermission) { coke++; Popecorn++; } } 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; } } I was born intelligent...education ruined me. :((

                  N Offline
                  N Offline
                  Nish Nishant
                  wrote on last edited by
                  #8

                  What does gaali mean? Hindi slang for girly? But aren't all girls girly? well, most anyway. Regards, Nish

                  My blog : Nish’s thoughts on MFC, C++/CLI and .NET

                  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