+ Follow This Topic
Results 1 to 13 of 13

Thread: New challenge for you all

  1. #1
    Join Date
    Feb 2006
    Posts
    308

    New challenge for you all

    Here's a programming question and I'm trying to prove to my friend that any moron can correctly answer this.

    Examine the code below:
    Code:
    Nick.cares();
    It returns:
    a) true
    b) false

    Reply with the correct answer.

  2. #2
    vashti's Avatar
    vashti is offline Hot love muffin guru
    Country:
    Users Country Flag
    "Hot Love Pancake(s)"
    Join Date
    Dec 2005
    Gender
    Female
    Posts
    22,890
    I'm not answering because I am not a moron.
    Relax... I'll need some information first. Just the basic facts - can you show me where it hurts?

  3. #3
    Join Date
    Apr 2004
    Gender
    Male
    Posts
    4,677
    Quote Originally Posted by dono View Post
    Here's a programming question and I'm trying to prove to my friend that any moron can correctly answer this.

    Examine the code below:
    Code:
    Nick.cares();
    It returns:
    a) true
    b) false

    Reply with the correct answer.
    Code:
    c) We.don't();
    Live together. Die alone - [url]http://www.youtube.com/watch?v=lvi_RCM3FAM[/url]

  4. #4
    anachronistic's Avatar
    anachronistic Guest
    Code:
    function nickCares()
    {
    var nickCares=GetKey();
    if(nickCares==KEY_Y)
    {
    GetSystemFont().drawText(1,1,"You think so? Well we really don't give a **** whether he does or doesn't.")
    FlipScreen();
    GetKey();
    }
    if(nickCares==KEY_N_)
    {GetSystemFont().drawText(1,1,"Well you're a little closer to the right answer, but who gives a ****?")
    FlipScreen();
    GetKey();
    }
    else
    {
    GetSystemFont().drawText(1,1,"Yea, who gives a ****.")
    FlipScreen();
    GetKey();
    }
    }

  5. #5
    Join Date
    Feb 2006
    Posts
    308
    JavaScript is too easy. Learn a real language.

  6. #6
    Join Date
    Apr 2004
    Gender
    Male
    Posts
    4,677
    Quote Originally Posted by lilwing View Post
    Code:
    function nickCares()
    {
    var nickCares=GetKey();
    if(nickCares==KEY_Y)
    {
    GetSystemFont().drawText(1,1,"You think so? Well we really don't give a **** whether he does or doesn't.")
    FlipScreen();
    GetKey();
    }
    if(nickCares==KEY_N_)
    {GetSystemFont().drawText(1,1,"Well you're a little closer to the right answer, but who gives a ****?")
    FlipScreen();
    GetKey();
    }
    else
    {
    GetSystemFont().drawText(1,1,"Yea, who gives a ****.")
    FlipScreen();
    GetKey();
    }
    }
    I still think my answer was better.
    Live together. Die alone - [url]http://www.youtube.com/watch?v=lvi_RCM3FAM[/url]

  7. #7
    Join Date
    Feb 2006
    Posts
    308
    Quote Originally Posted by Kiechi View Post
    I still think my answer was better.
    Me too.

  8. #8
    anachronistic's Avatar
    anachronistic Guest
    Quote Originally Posted by dono View Post
    JavaScript is too easy. Learn a real language.
    Code:
    //eslap
    
    int surrealLanguage()
    {
    int nickCares;
    cout << "Does Nick Care?";
    cin >> nickCares;
    
    int nicksFeelings;
    cout << nickCares;
    cout << "Who cares if Nick Cares?";
    cout << "Nobody.";
    cout << "I mean, what's wrong Nick?";
    cout << "You haven't inserted your jump drive in my USB port for a long time.";
    cin >> nicksFeelings;
    
    return 0;
    }
    Last edited by anachronistic; 10-04-07 at 08:42 AM.

  9. #9
    bluesummer's Avatar
    bluesummer is offline Whatever.
    Country:
    Users Country Flag
    "Hot Love Pancake(s)"
    Join Date
    Apr 2004
    Gender
    Female
    Location
    Kelowna, BC
    Posts
    4,410
    Wow. You guys actually find this amusing, don't you?
    Live as if you were to die tomorrow. Learn as if you were to live forever. - Mohandas Gandhi

  10. #10
    Join Date
    Sep 2006
    Location
    Mars
    Posts
    908
    Yes. What do you expect a group of geeks not to? lol

  11. #11
    bluesummer's Avatar
    bluesummer is offline Whatever.
    Country:
    Users Country Flag
    "Hot Love Pancake(s)"
    Join Date
    Apr 2004
    Gender
    Female
    Location
    Kelowna, BC
    Posts
    4,410
    Hey, I didn't want to be the one to say it.
    Live as if you were to die tomorrow. Learn as if you were to live forever. - Mohandas Gandhi

  12. #12
    Join Date
    Feb 2006
    Posts
    308
    Quote Originally Posted by lilwing View Post
    Code:
    //eslap
    
    int surrealLanguage()
    {
    int nickCares;
    cout << "Does Nick Care?";
    cin >> nickCares;
    
    int nicksFeelings;
    cout << nickCares;
    cout << "Who cares if Nick Cares?";
    cout << "Nobody.";
    cout << "I mean, what's wrong Nick?";
    cout << "You haven't inserted your jump drive in my USB port for a long time.";
    cin >> nicksFeelings;
    
    return 0;
    }
    That would've outputted everything on the same line.

    Code:
    cout << "Data" << endl;
    cout << "Data2\n";
    Either of those would've worked. And why are you having the user input something? Pointless.

    Also, you forgot this at the beginning:

    Code:
    #include <cstdio>
    #include <iostream>
    
    using namespace std;

  13. #13
    anachronistic's Avatar
    anachronistic Guest
    Quote Originally Posted by dono View Post
    That would've outputted everything on the same line.

    Code:
    cout << "Data" << endl;
    cout << "Data2\n";
    Either of those would've worked. And why are you having the user input something? Pointless.

    Also, you forgot this at the beginning:

    Code:
    #include <cstdio>
    #include <iostream>
    I know.

    Why did I have the user input? I made this program for you so that you can have an econvo with your computer.. to be pointless is the point.

    And I purposely left those lines out because I'm a lazy asshole and it's not part of the point.

Similar Threads

  1. A Challenge To All!
    By King Zarathu in forum Off Topic Discussion
    Replies: 17
    Last Post: 10-12-06, 05:52 AM
  2. Challenge: BMX Tricks
    By DarkDwarf in forum Off Topic Discussion
    Replies: 6
    Last Post: 05-08-06, 01:23 PM
  3. Chopper Challenge
    By King Zarathu in forum Off Topic Discussion
    Replies: 0
    Last Post: 08-05-06, 10:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •