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:
It returns:Code:Nick.cares();
a) true
b) false
Reply with the correct answer.
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:
It returns:Code:Nick.cares();
a) true
b) false
Reply with the correct answer.
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?
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(); } }
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.
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
Yes. What do you expect a group of geeks not to? lol
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
That would've outputted everything on the same line.
Either of those would've worked. And why are you having the user input something? Pointless.Code:cout << "Data" << endl; cout << "Data2\n";
Also, you forgot this at the beginning:
Code:#include <cstdio> #include <iostream> using namespace std;