|
Alright I saw this game at Hatake. And it was a great way to learn stuff? So all you have to do is guess which language it is and guess what it does. We'll start easy:
function crazy_j(greg){ var cd = document.getElementById(greg); var hp = cd.height; var nate = cd.width; var uberness = hp * nate; return uberness; }
|
|
|
|
|
Jup it is JavaScript, now me:
$name = 'Mike'; while($name == 'Mike') { echo 'this wil repeat Mike!<br />'; }
|
|
|
|
|
Jup it is JavaScript, now me: $name = 'Mike'; while($name == 'Mike') { echo 'this wil repeat Mike!<br />'; } PHP and it says your name? btw: your supposed to tell what it does to
|
|
|
|
o, sorry
|
|
|
|
|
|
heh i got one for ya.. if($pho3nix >= $everyone_else) { echo "Yami Pwns u all"; } else if($pho3nix <= $everyone_else) { $pho3nix == ">"; echo "Yami still pwns u all"; }
|
|
|
|
|
PHP and echos "yami pwns you all" and "yami still pwns you all" depending if yami is more or equal to every one else and if yami is less or equal to everyone else. Even though alot of variables in the code were not defined....
Let's keep it simple for you guys. =P
#include <iostream> using namespace std; int main(void) { cout << "You noobs !!"; return 0; }
|
|
|
|
I'm going to say C++ or C, and I think it displayed "You noobs !!" but I'm not quite sure.
|
|
|
|
|
its C++ chris lol dim h h=hour(now()) response.write("<p>" & now()) response.write(" (UK Time) </p>") If h<12 then response.write("Good Morning!") else response.write("Good day!") end if
Last Edit: Mar 17, 2006 13:34:12 GMT by Llanilek
|
|
|
|
|
its C++ chris lol dim h h=hour(now()) response.write("<p>" & now()) response.write(" (UK Time) </p>") If h<12 then response.write("Good Morning!") else response.write("Good day!") end if This is visual basic and it displays Good Morning or Good Day depending on the time of Uk.
|
|
|
|
its actually asp using vbscript as the tags to use it are <% %>
Last Edit: Mar 17, 2006 15:27:11 GMT by Llanilek
|
|
|
|
|
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*
Last Edit: Mar 17, 2006 19:32:43 GMT by hpmad
|
|
|
|
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* Is it C++ ?
|
|
|
|
|
Fine then:
function gunny($name) {
if $name='cali' {
echo 'Sorry, great one! *bows*';
}
else { echo '$name is smelly';
} }
|
|
|