|
oooooooooo this looks fun! #include <iostream>
using namespace std;
int main(){ int pwned; cout<<"Does hpmad pwn you?"; cin>>pwned; if(pwned=='yes'){ cout<<"I shall bow down to hpmad and feed him grapes all day." }else{ cout<<"I still have to bow down to hpmad and feed him grapes all day." } return 0; }Man I still suck at this language >.< *reads more tutorials* It's a c++ code that generates a prompt with the question "Does hpmad pwn you?". If you say "yes" it will print "I shall bown down to hpmad and feed him grapes all day" else it will print "I still have to bow down to hpmad and feed him grapes all day". =P Gunny's is a php function which is never fired.......
|
|
|
|
And I don't think it'd even work cause he sets name to "cali" in the if statement.
|
|
|
|
|
Gunny that wouldn't work, more like:
$name='cali' if($name=="cali"){ echo 'Sorry, great one! *bows*'; } else { echo '$name is smelly'; } }
|
|
|
peter
Guest
|
I wanna play const $_SERVER = {GLOBALS: [2, 3, 6, 7, 8, 9, 10]};
$_POST = /*GLOBAL["FORM_POST_GLOBALS"]*/{FINAL: ""};
$_POST["cj"] = "CrAzY_J"; $_POST["cd"] = "[ CD ]";
function $ah($n00b_a, $n00b_b){ if($n00b_a && $n00b_b && /*!preg_match("/$_INT_SERVER["n00b_a"]/is")*/ $n00b_a == $_POST["cj"]){ $str = $n00b_b.concat($n00b_a); $_SERVER["GLOBALS"].forEach($ah, {str: $str}); } else { if($n00b_a == 6){ $_POST["FINAL"] += " is "; }
$_POST["FINAL"] += this.str.charAt($n00b_a); } }
$ah($_POST["cj"], $_POST["cd"]);
What value does $_POST["FINAL"] hold.
Last Edit: Mar 20, 2006 0:18:21 GMT by peter
|
|
|
|
It contains my confusion. I don't even know what language that is. Its not PHP, becuase if I remember correctly PHP can't use methods (I believe they're called that.... its whatever stuff like number.toString() is).
|
|
|
|
|
New Rule: Peter can't play j/k I think Peter's is PHP and it states "Crazy_J is Crazy_J"?
|
|
|
peter
Guest
|
Actually it's Javascript . The output is "CD is CrAzY"
|
|
|
|
haha, he just confused us with the $ signs and named the variables into stuff you usually find in PHP scripts. But I thought something was weird after seeing some functions inside the comments >_<. Thought it was Perl or something =P
|
|
|
acoolie
Guest
|
Yeah, the methods really gave it away. Trying to trick us with comments, sneaky. Yeah, CJ had to ask me via Pm what language it was =P
My turn =D You're all gonna hate me for this =P class MyClass attr_reader :name, :store attr_writer :name, :store def initialize(string) @name = string[0..string.index('@')] @name = @name.unpack('m*')[0].unpack('xax2aX3aX3ax2a').join @store = string.slice(string.index('@') + 1, string.length) @store = @store.unpack('m*')[0].unpack('x2aX3aXaa').join end def print return @name + ' is a ' + @store.concat(33) end end
$myVar = MyClass.new('ZXB0cmU=@mgju') str = $myVar.print
5.times { str.each { |l| print l + "\n" } }
Last Edit: Mar 28, 2006 21:09:02 GMT by peter
|
|
|
|
I got it on my second guess. I'm not allowed to tell though
|
|
|
acoolie
Guest
|
I got it on my second guess. I'm not allowed to tell though Finding the language is the easy part. Now find out what it does.
|
|
|
|
it looks a little like perl.. but i'm not sure... haven't a clue what it does XD
|
|
|
|
|
I got it on my second guess. I'm not allowed to tell though Finding the language is the easy part. Now find out what it does. Had to find a base64 decoder, after that it was too easy =P.
|
|
|
|
Perl. I went and learned a bit of Perl to understand this, and then I cried on the inside. I know $ is a string or number variable, while @ is an array. I don't know what it does though.
|
|
|
|
|
Perl. I went and learned a bit of Perl to understand this, and then I cried on the inside. I know $ is a string or number variable, while @ is an array. I don't know what it does though. It's not Perl
|
|
|