Owner: Joe
Members: 25




 
Using C Language to ask out a girl - 10 March, 2007
Jawad Shuaib says
Found this lying somewhere in my email. I thought it might help out some of us hopeless romantics. Don't hesitate to add your own open source code to it, enjoy
[code=cpp]
 
#include “STD ISD PCO.h”
#include “love.h”
#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 == "Buzz off!")
            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;
      }
}
[/code]
Total Topic Karma: 37 - More by this Author
RyeGye24 says
+0 Karma
Nice.
- Author's History - 10 March, 2007
hail, bonk bonk god of power says
+0 Karma
lol ok
- Author's History - 10 March, 2007
Isomorph says
+8 Karma
I use logic.

I ask her. "If I ask your to go out with me, will you answer the same as to this question?"

Think a little about that.

- Author's History - 10 March, 2007
Jawad Shuaib says
+1 Karma
^haha. That's smart! Bertrand Russel and Kurt Godel would be proud.
- Author's History - 10 March, 2007
RyeGye24 says
+1 Karma
Ha Ha, Karma++ for the logics Isomorph!
- Author's History - 10 March, 2007
Lacey says
+0 Karma
Awwww
- Author's History - 10 March, 2007
Ati says
+0 Karma
Ha Ha. That's a great one.

- Author's History - 11 March, 2007
Sabina says
+0 Karma
kewl !!
- Author's History - 12 March, 2007
Isomorph says
+2 Karma
Thanks for the karma !!

Yes logic can get your a date. And math can make your rich and
good looking.
- Author's History - 12 March, 2007
Ati says
+0 Karma
Well, rich anyway.
- Author's History - 12 March, 2007
J3nnif3r says
+1 Karma
Sweet! Though I don't think that Math will make you good looking...
- Author's History - 15 March, 2007
oilaven! says
+1 Karma
Math in the percentage of alcohol consumption will...
- Author's History - 19 March, 2007
Ati says
+1 Karma
Well, the percentage of alcohol consumption, divided by body weight and added to '-(alcohol tolerance / body weight) ".

There are other factore to consider, but that should give you a rough estimate
- Author's History - 19 March, 2007
RyeGye24 says
+0 Karma
wow, I think 6 might be the highest karma for an individual post.
- Author's History - 19 March, 2007
Ati says
+0 Karma
It's not.

I think that's around 8 or so.

But its much higher than most.
- Author's History - 19 March, 2007
J3nnif3r says
+2 Karma
LIQUER! ME WANT LIQUER! Me and Hannah are sleeping round Gerri's house on Friday because it's her birthday and we are gunna get drunk...And revise for our SATS...at the same time.....which could be intrestinig....
- Author's History - 20 March, 2007
Ati says
+0 Karma
Just be sure to take pictures of your teachers face when you turn them in.
- Author's History - 20 March, 2007
J3nnif3r says
+0 Karma
I'll remember that
- Author's History - 29 March, 2007
Ati says
+0 Karma
Preferably in high resolution.
- Author's History - 29 March, 2007
RAMiN says
+0 Karma
wow, man, that is awesome.
- Author's History - 02 April, 2007
says
+1 Karma
@J3nnif3r

math can definetly make u good looking i know from experience
- Author's History - 03 April, 2007
Ati says
+0 Karma
How so?
- Author's History - 03 April, 2007
J3nnif3r says
+0 Karma
We just had a big Easter dinner and we are walking the dog in a min

@Hello:
I dought that
- Author's History - 08 April, 2007
says
+2 Karma
@Ati & J3nnif3r

do you know this equation? Do you know how it looks like?:

math equation

Is this not buetifull?
If this simple math equation creates such a buitifully complex picture, just imagine what it can do for you.
- Author's History - 16 April, 2007
J3nnif3r says
+0 Karma
I very much dought that a simple equation can make you "buetilull". Math can NOT make you beautiful.
- Author's History - 17 April, 2007
J3nnif3r says
+0 Karma
"Buetifull"*
- Author's History - 17 April, 2007
Ati says
+0 Karma
Actually, I'm not familiar with that equation Hello.
- Author's History - 17 April, 2007
says
+1 Karma
@ATi
ok here the site where you can see this:

http://www.pma.caltech.edu/~physlab/ph21_spring06/assignment-1.pdf

look at the diagram on the second page.
- Author's History - 17 April, 2007
says
+1 Karma
@ATi
ok here the site where you can see this:

[link=http://www.pma.caltech.edu/~physlab/ph21_spring06/assignment-1.pdf]

look at the diagram on the second page.
- Author's History - 18 April, 2007
says
+1 Karma
hmm sorry i dont know how to use the links
- Author's History - 18 April, 2007
J3nnif3r says
+0 Karma
*Stares blankly at laptop screen*
I still don't believe it. There is no secret formulae to make you beautiful. It's not even the slightst but logical to believe in it. The End

Jen
XxX
- Author's History - 18 April, 2007
says
+1 Karma
You might not belive, but maybe if i apply the superposition principle to some of these equations to create a better summation, or maybe use the fourier transfor i can come up with the equation of bueaty. Of course i dont have time to mess around w/ trivial equations.
- Author's History - 18 April, 2007
J3nnif3r says
+0 Karma
*Stares blankly at laptop screen*

Still not logical
- Author's History - 18 April, 2007
says
+1 Karma
ok, ya your right. But still, dont you see the beuty in numbers?
- Author's History - 21 April, 2007
J3nnif3r says
+1 Karma
They are very preeeeeeeeeeedyful Hello
- Author's History - 21 April, 2007
says
+0 Karma
3
- Author's History - 23 April, 2007
J3nnif3r says
+1 Karma
3 is a very preeeedy number.
- Author's History - 24 April, 2007
says
+1 Karma
3

I like numb3rs
- Author's History - 25 April, 2007
Ati says
+0 Karma
I'm partial 3.14159 myself. And 1.00794.
- Author's History - 25 April, 2007
says
+1 Karma
you do know that 3 is a link right ati? 3.14159265358979323... thats about all that i know by heart, i dont know beyond that.
- Author's History - 25 April, 2007
J3nnif3r says
+1 Karma
I like the number 9. In french it's "neuf".
- Author's History - 25 April, 2007
says
+1 Karma
i like the number... wait i can't tell you my favorite number. As odd as it sounds, its too personal.
- Author's History - 25 April, 2007
Ati says
+0 Karma
I like seven best, among the rational numbers.
- Author's History - 26 April, 2007
Fibonacci's Wench says
+0 Karma
yes, seven and five are my favourite numbers...

They are prominent in my life.

my last name means seven in Italian and I was born on the 25th of the 5th 1985 at 5:55am
- Author's History - 26 April, 2007
J3nnif3r says
+0 Karma
lol. Seven is a cool number But I still likesis neuf
- Author's History - 26 April, 2007
Ati says
+0 Karma
Seven is perfect. IT's odd, it's a prime, and it's got all kinds of significance in literature.
- Author's History - 26 April, 2007
says
+1 Karma
i dont really like 7. i tend to like 1, 2, 3, 4, 5, 6, 8, 9, 0 more.
- Author's History - 27 April, 2007
J3nnif3r says
+0 Karma
Strange number people. I like 6 though. I was born on the 6th
- Author's History - 27 April, 2007
says
+1 Karma
_| 3 |\| |\| 1 |= 3 |>_
- Author's History - 27 April, 2007
RyeGye24 says
+0 Karma
I like 24
and actually, numbers can make you prettyful, because beauty is all about symmetry. Anyways, have you seen the thing: Anatomy of the Perfect Woman? or the number, 1.686 (I think thats it).
- Author's History - 27 April, 2007
J3nnif3r says
+1 Karma
The number 23 is cool The movie is also good
- Author's History - 27 April, 2007
Ati says
+0 Karma
A friend of mine had an idea for a parody of that.

The number one.

1 times 2/3 = 0.666

Date the titanic went down: April 14, 1912

0.1 times 141,912 = 14, 191.2


Coincidence?

Just keep telling yourself that.

- Author's History - 28 April, 2007
J3nnif3r says
+0 Karma
David Beckham Real Madrid number 23

46 chromosomes 23 from each parent

Hiroshima bomb dropped at 8:15
8+15=23
- Author's History - 29 April, 2007
says
+1 Karma
294
- Author's History - 03 May, 2007
says
+1 Karma
3.141592653589793238462
- Author's History - 03 May, 2007
J3nnif3r says
+0 Karma
I am special
- Author's History - 04 May, 2007
Ati says
+0 Karma
oh?
- Author's History - 04 May, 2007
J3nnif3r says
+0 Karma
Yes, yes I am
- Author's History - 07 May, 2007
Walter says
+1 Karma
Ugly code. It doesn't seem C or C++. This code was possibly made by a person with a non-structured experience (coming from BASIC, for example) trying to learn C.

I did a quick revision and made some changes. I think this is a more reasonable C version.

[code=cpp]
 
/* C89 version */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "love.h"
#define Cute  beautiful_lady
void college();
void restaurant();
void cinema();
void park();
void pub();
void friendsroom();
void home();
void sleep();
int main(int argc, char *argv[])
{
    for (;;)
    {
        college();
        scanf("%d",&lady);
        if(lady == Cute)
            line++;
        scanf("%s", reply);
        while(reply == NULL)
        {
            printf("I Love U");
            scanf("%s", reply);
        }
        if(!strcpy(reply, "Buzz off!"))
            continue;  /* go back and repeat the process */
        else if(!strcpy(reply, "SANDAL"))
            exit(1);
        else if(!strcpy(reply, "I Love U"))
        {
            love = Cute ;
            lover = (heart*) malloc(sizeof lover); /* warning: may not be released */
        }
        restaurant();
        break;
    }
    return 0;
}
void college()
{
    /* missing definition */
}
void restaurant()
{
    food++;
    smile++;
    pay(lover->money);
    college();
    if(time == 14.5)
        cinema();
}
void cinema()
{
    watch++;
    if(intermission)
      {
        coke++;
        Popecorn++;
    }
    if(time == 18.00)
        park();
}
void park()
{
    for(time=18.5; time<=20.5; time+=0.001)
          kiss++;
    free(lover);
    home();
    if(time == 21.5)
        pub();
}
void pub()
{
    friends++;
    party++;
    booze++;
    smoke++;
    if(pub.closed)
    {
        pay(bill);
        come(out);
    }
    if (intoxicated >= highly)
        friendsroom();
    else
    {
        sweetpan++;
        polo++;
        home();
    }
}
void friendsroom()
{
    sleep();
}
void home()
{
    if (mom.shouts())
    {
        reason = combinedstudy | projectwork | friendsbday;
        say(reason);
    }
    if (dad.shouts())
        shut(yourmouth);
    call(lover);
    if ((phone->voice == lover_dad->voice) || (phone->voice == lover_mom->voice))
        hang++;
    else if(phone->voice == lover->voice)
    {
        for (time=0.5; time<=1.5; time+=0.001)
        {
            say(ILuvU);
            scanf("%s", reply); /* "I Love U" already stored in reply */
        }
    }
    sleep();
}
void sleep()
{
    *dream = love;
}
[/code]
- Author's History - 10 March, 2008
rigorth says
+0 Karma
You can also write it with bash, .
- Author's History - 25 March, 2008
poss says
+0 Karma
haha popecorn
- Author's History - 25 March, 2008
J3nnif3r says
+0 Karma
Pope what what?
- Author's History - 27 April, 2008
Ati says
+0 Karma
Fluffy kernels with funny hats. Oh, and they're nazis.
- Author's History - 27 April, 2008
J3nnif3r says
+0 Karma
What the?
Nazi popcorn?
*shudders*
- Author's History - 28 April, 2008
(Guest) codeneko says
+0 Karma
> "If I ask your to go out with me, will you answer the same as to this question?"

Let's look at some of possible answers to the question.
0. "yes": ok, fine.
1. "no": yeah, in binary world you can consider that as "yes" as well, but in real life there are also "go bother someone else" and OVER 9K other possible answers.
2. "ugh, what?": what would you do in this case?
- Author's History - 23 May, 2009
Comment:

Name: