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.
Printable View
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.
Quote:
Originally Posted by dono [Dear Guest/Member you have to reply to see the link.click here to register]
Code:c) We.don't();
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.
I still think my answer was better.Quote:
Originally Posted by lilwing [Dear Guest/Member you have to reply to see the link.click here to register]
Me too.Quote:
Originally Posted by Kiechi [Dear Guest/Member you have to reply to see the link.click here to register]
Quote:
Originally Posted by dono [Dear Guest/Member you have to reply to see the link.click here to register]
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;
}
Wow. You guys actually find this amusing, don't you?
Yes. What do you expect a group of geeks not to? lol
Hey, I didn't want to be the one to say it.
That would've outputted everything on the same line.Quote:
Originally Posted by lilwing [Dear Guest/Member you have to reply to see the link.click here to register]
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;
I know.Quote:
Originally Posted by dono [Dear Guest/Member you have to reply to see the link.click here to register]
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.