In this thread, we Hello World
1
Name:
Anonymous
2006-06-20 20:56
c:
#include <stdio.h>
main() { printf("hey worldz\n"); }
121
Name:
Anonymous
2006-08-01 13:57
122
Name:
Anonymous
2006-08-01 14:28
>>92
>>118
>>120
see
>>15
My father would laugh to see
>>34
123
Name:
Anonymous
2006-08-01 17:25
124
Name:
Anonymous
2006-08-02 0:42
>>37
1. Swap 1 with 71.
10. Output this block's position.
11. Swap 11 with 150.
32. Output this block's position.
34. Swap 33 with 32.
35. Swap 35 with 118.
36. Swap 36 with 9.
72. Output this block's position.
101. Output this block's position.
102. Swap 101 with 100.
103. Swap 103 with 107.
104. Swap 104 with 32.
108. Output this block's position.
109. Swap 109 with 107.
111. Output this block's position.
112. Swap 112 with 31.
114. Output this block's position.
115. Swap 110 with 117.
116. Swap 116 with 107.
117. Swap 110 with 99.
119. Output this block's position.
120. Swap 120 with 110.
ggthxbai
125
Name:
Anonymous
2006-08-02 8:37
>>124
using more than one "Output this block's position." is gay.
126
Name:
NonymousQ
2006-08-03 0:24
Java:
System.out.print("Hullo werld!!!!");
Python:
>>'Hello world'
>>print 'hello world'
PHP:
echo "Hello world";
print("Hello world");
127
Name:
Anonymous
2006-08-03 11:38
128
Name:
DoubleAW
2006-08-04 0:00
>>127
You fail at PHP.
Good day, sir.
129
Name:
Anonymous
2006-08-04 1:26
(sage)
>>128
Anything not between <?php ... ?> is left as is, and thus, NO U.
(At least, that was how it worked last I checked. Not a feature I use often.)
130
Name:
Anonymous
2006-08-04 3:20
131
Name:
Anonymous
2006-08-04 3:38
>>128,130
You are the one who failed it, don't fail to admit it
Stuff outside <?php ... ?> gets forwarded to the standard output, even if it's a bad idea (except for templates).
132
Name:
Anonymous
2006-08-04 4:44
>>139
PHP is a bad idea (except for templates).
133
Name:
Anonymous
2006-08-04 5:31
>>132
thinks the only use for scripting languages are for templates, insta-FAIL
>>131
not considered as PHP code unless its inside <?php ?>
GTFO on my interwebs
134
Name:
Anonymous
2006-08-04 5:46
(sage)
>>133
thinks the only use for scripting languages are for templates, insta-FAIL
MOAR LIEK "REALIZES PHP IS A STEAMING PILE OF SHIT", MIRITE? Seriously, there's much better choices out there.
135
Name:
Anonymous
2006-08-04 5:47
>>134
NEWSFLASH: PHP is not the only scripting language
136
Name:
Anonymous
2006-08-04 7:22
(sage)
>>135
NEWSFLASH:
>>132 EXPLICITLY MENTIONED PHP.
137
Name:
Anonymous
2006-08-04 8:46
NEWSFLASH:
>>1-136 are stupid
138
Name:
Anonymous
2006-08-04 10:15
>>137
NEWSFLASH: PROTIP COMING UP ON
>>139
139
Name:
Anonymous
2006-08-04 14:28
PHP IS EVEN BETTER.
140
Name:
Anonymous
2006-08-04 14:36
NEWSFLASH: NEWSFLASH
141
Name:
Anonymous
2006-08-04 23:27
(sage)
NEWSFLASH:
PENIS
142
Name:
Anonymous
2006-08-11 15:52
(=<`:9876Z4321UT.-Q+*)M'&%$H"!~}|Bzy?=|{z]KwZY44Eq0/{mlk**
hKs_dG5[m_BA{?-Y;;Vb'rR5431M}/.zHGwEDCBA@98\6543W10/.R,+O<
143
Name:
Anonymous
2006-08-13 6:36
<?php
$comment = "penis";
$wordfilter=array(
"penis" => "Hello world!",
);
$comment = str_replace(array_keys($wordfilter), array_values($wordfilter), $comment);
echo $comment;
?>
144
Name:
Anonymous
2006-08-14 4:07
>>142
I can't tell whether this is valid Perl or not
145
Name:
Anonymous
2006-08-14 13:39
(sage)
>>144
turn in your perl badge, now.
146
Name:
Anonymous
2006-08-15 2:57
Ruby:
puts 'Hello World!'
self.puts 'Hello World!'
penis=gets.chomp
puts 'Hello ' penis ' World!'
147
Name:
Anonymous
2006-08-15 3:01
FPOBA Language:
auntie<<"Hello World\.uncle"
will>>int.belaire
148
Name:
Anonymous
2006-08-15 9:15
javascript:
function
w(o,r,l,d,z)
{
if (l<=r.length)
{
o+=z(d);
return(w(o,r,++l,d+r[--l],z));
} else {
return(o);
}
}
omg_hax=new Array(12);
omg_hax[omg_hax[2]=0]=(omg_hax[1]=7)*(omg_hax[3]=omg_hax[8]=3)-(omg_hax[10]=-8);
omg_hax[6]=-((omg_hax[4]=omg_hax[11]=-67)+(omg_hax[7]=-2*(omg_hax[5]=2*(omg_hax[9]=-6)))/2);
alert(w('',omg_hax,0,72,String.fromCharCode));
149
Name:
Anonymous
2006-08-15 12:07
penis.chop!
150
Name:
Anonymous
2006-08-15 12:10
>>149
My first Ruby program EVAR called. It wants its LOC back.
151
Name:
Anonymous
2006-08-15 22:16
(print 'Hello-world!)
152
Name:
Anonymous
2006-08-16 20:52
#!/bin/bash
echo "Yo man, wazz'apnin?"
153
Name:
Anonymous
2006-08-17 6:26
io:format("Hello world~n", []).
154
Name:
Anonymous
2006-08-17 7:48
155
Name:
Anonymous
2006-08-17 10:33
I like my way
<?
function hedonist(){
return array('world' => "hello");
}
this = hedonist();
foreach($this as $value){
echo $value;
}
foreach($this as $key => $value){
echo $key;
}
?>
156
Name:
Anonymous
2006-08-17 10:52
message$ = "Hello world!"
attribute% = &H1F
DEF SEG = &HB800
FOR i% = 1 TO LEN(message$)
POKE (i% - 1) * 2, ASC(MID$(message$, i%, 1))
POKE i% * 2 - 1, attribute%
NEXT
157
Name:
Anonymous
2006-08-17 11:20
Hello World for Win32:
#define UNICODE
#include <windows.h>
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow) {
HANDLE stdin, stdout;
TCHAR *msg = L"Hello, world!";
AllocConsole();
stdin = GetStdHandle(STD_INPUT_HANDLE);
stdout = GetStdHandle(STD_OUTPUT_HANDLE);
WriteConsole(stdout, msg, 12, NULL, NULL);
ReadConsole(stdin, NULL, 0, NULL, NULL);
FreeConsole();
ExitProcess(0);
return 0;
}
Clearly, "OS API" is to "Win32" what "programming language" is to "Java".
158
Name:
Anonymous
2006-08-17 12:18
>>157
#include <windows.h>
int APIENTRY WinMain(HINSTANCE inst,
HINSTANCE prev,
LPSTR args,
int show) {
MessageBox(0,"Hello World","",0);
return 0;
}
159
Name:
Anonymous
2006-08-17 15:14
>>158
I wanted to print it to the console, without using CRT.
160
Name:
Anonymous
2006-08-17 17:51
I bet this has been done...but what the hell D:
#include <iostream>
using namespace std;
int main() {cout<<"OH HAI IS THIS THE INTERBUTT?!\n"; cin.get(); return 0;}
FAILS for lack of structure and in-depth comments describing every single fucking line.
Newer Posts