stutters August 1, 2008 Share stutters GC Alumni August 1, 2008 use it or lose it. Quote Link to comment Share on other sites More sharing options...
NOFX August 1, 2008 Share NOFX Member August 1, 2008 (edited) are we supposed to write this in our native tongue? cout << "Hello World "<<endl; or printf ("%s \n", "Hello World"); Edited August 1, 2008 by NOFX Quote Link to comment Share on other sites More sharing options...
ZesteR August 1, 2008 Share ZesteR Member August 1, 2008 system.out.println("Hello World"); btw, nofx, my c++ teacher would have taken a point off for etiquette for not having a space between << and endl; what language is printf? Quote Link to comment Share on other sites More sharing options...
ZeroDamage August 1, 2008 Share ZeroDamage Member August 1, 2008 what language is printf? C Quote Link to comment Share on other sites More sharing options...
ZesteR August 1, 2008 Share ZesteR Member August 1, 2008 (edited) TY, didnt know u knew spanish.. huh Edited August 1, 2008 by ZesteR Quote Link to comment Share on other sites More sharing options...
Unclean August 1, 2008 Share Unclean Member August 1, 2008 Response.Write("hello world"); Quote Link to comment Share on other sites More sharing options...
dwEEziL August 1, 2008 Share dwEEziL Member August 1, 2008 Y HALO THAR WURLD Quote Link to comment Share on other sites More sharing options...
mookie August 1, 2008 Share mookie GC Alumni August 1, 2008 system.out.println("Hello World"); btw, nofx, my c++ teacher would have taken a point off for etiquette for not having a space between << and endl; what language is printf? Your teacher is a noob, he should've taken off a point for not using namespace std. Quote Link to comment Share on other sites More sharing options...
ZesteR August 1, 2008 Share ZesteR Member August 1, 2008 1. it was a she 2. anything beyond loops and arrays was rarely taught in a community college... namespace std. would be much nicer. Quote Link to comment Share on other sites More sharing options...
LoveForPriscillaChan August 1, 2008 Share LoveForPriscillaChan Member August 1, 2008 are we supposed to write this in our native tongue? cout << "Hello World "<<endl; or printf ("%s \n", "Hello World"); Corrected: std::cout << "Hello World" << std::endl; (void) printf("%s \n", "Hello World"); Quote Link to comment Share on other sites More sharing options...
NOFX August 4, 2008 Share NOFX Member August 4, 2008 (edited) are we supposed to write this in our native tongue? cout << "Hello World "<<endl; or printf ("%s \n", "Hello World"); Corrected: std::cout << "Hello World" << std::endl; (void) printf("%s \n", "Hello World"); ever heard of "using namespace std"? Edited August 4, 2008 by NOFX Quote Link to comment Share on other sites More sharing options...
LoveForPriscillaChan August 4, 2008 Share LoveForPriscillaChan Member August 4, 2008 are we supposed to write this in our native tongue? cout << "Hello World "<<endl; or printf ("%s \n", "Hello World"); Corrected: std::cout << "Hello World" << std::endl; (void) printf("%s \n", "Hello World"); ever heard of "using namespace std"? the original poster didnt use it; and i can't be sure if he is doing this in some class in some header file so to err on the safe side, i use std:: and besides, i dont use "using namespace std"...so polluting Quote Link to comment Share on other sites More sharing options...
NOFX September 29, 2008 Share NOFX Member September 29, 2008 I'm learning new languages everyday Console.Write("Hello World"); or textBox1.Text = "Hello World" Quote Link to comment Share on other sites More sharing options...
Laz.e.rus September 29, 2008 Share Laz.e.rus Member September 29, 2008 10 Rem New Program! 20 Cls 30 Print "Hello World!" 40 Input "Would you like this printed? (Y/N)";A$ 50 If A$<> "Y" and A$<>"N" then goto 40 60 If A$="N" then End 70 If A$="Y" then Lprint "Hello World" 80 End Quote Link to comment Share on other sites More sharing options...
NOFX September 29, 2008 Share NOFX Member September 29, 2008 10 Rem New Program!20 Cls 30 Print "Hello World!" 40 Input "Would you like this printed? (Y/N)";A$ 50 If A$<> "Y" and A$<>"N" then goto 40 60 If A$="N" then End 70 If A$="Y" then Lprint "Hello World" 80 End Assembly? I haven't messed with something like this since school Quote Link to comment Share on other sites More sharing options...
stutters September 29, 2008 Author Share stutters GC Alumni September 29, 2008 isn't that basic? Quote Link to comment Share on other sites More sharing options...
dwEEziL September 29, 2008 Share dwEEziL Member September 29, 2008 Yeah, it looks like BASIC to me. Quote Link to comment Share on other sites More sharing options...
dragonfly September 29, 2008 Share dragonfly Member September 29, 2008 (edited) .data sHello BYTE "Hello World!", 0 .code main PROC pushad &COMMENT This is the part where you move the thing into the other thing! & mov edx, OFFSET sHello @COMMENT WriteString is included in the Irvine32.inc file, fyi.@ call WriteString popad exit main ENDP Edited September 29, 2008 by DarkArchon Quote Link to comment Share on other sites More sharing options...
Laz.e.rus September 29, 2008 Share Laz.e.rus Member September 29, 2008 10 Rem New Program!20 Cls 30 Print "Hello World!" 40 Input "Would you like this printed? (Y/N)";A$ 50 If A{:content:}lt;> "Y" and A{:content:}lt;>"N" then goto 40 60 If A$="N" then End 70 If A$="Y" then Lprint "Hello World" 80 End Assembly? I haven't messed with something like this since school Yup! the original age-old "B.A.S.I.C." that I first started to learn on a Radio Shack TRS-80 Model 1 with 16k ram Line by line and step by agonizing step. Note: Always count your lines by ten!! That way you have 9 lines in between in case you need to add more! Otherwise, you have to re-write the program to get extra line numbers. Of course, if youre the gambling sort and know you never make a mistake: 1 Rem New Program! 2 Cls:Print "Hello World!" 3 Input "Would you like this printed? (Y/N)";A$ 4 If A$<> "Y" and A$<>"N" then goto 3 else if A$="N" then End 5 Lprint "Hello World":End Quote Link to comment Share on other sites More sharing options...
Windex April 28, 2010 Share Windex Member April 28, 2010 (edited) <?php $user = $_POST['username']; if ($user=='stutters') { echo 'G'day Mate!'; } else { echo 'Hello World!'; } ?> Edited April 28, 2010 by Windex Quote Link to comment Share on other sites More sharing options...
ZeroDamage April 28, 2010 Share ZeroDamage Member April 28, 2010 (edited) Python 3: print("Hello world") Edited April 28, 2010 by ZeroDamage Quote Link to comment Share on other sites More sharing options...
yErMoTH3r April 28, 2010 Share yErMoTH3r GC Founder April 28, 2010 BITS 32 org 0x05430000 db 0x7F, "ELF" dd 1 dd 0 dd $$ dw 2 dw 3 dd _start dw _start - $$ _start: inc ebx ; 1 = stdout file descriptor add eax, dword 4 ; 4 = write system call number mov ecx, msg ; Point ecx at string mov dl, 13 ; Set edx to string length int 0x80 ; eax = write(ebx, ecx, edx) and eax, 0x10020 ; al = 0 if no error occurred xchg eax, ebx ; 1 = exit system call number int 0x80 ; exit(ebx) msg: db 'hello, world', 10 Quote Link to comment Share on other sites More sharing options...
Windex April 28, 2010 Share Windex Member April 28, 2010 Addressing memory and what not is wayyyyy over my head.. I need more schoolin haha Quote Link to comment Share on other sites More sharing options...
Unclean May 2, 2010 Share Unclean Member May 2, 2010 <?php $user = $_POST['username']; if ($user=='stutters') { echo 'G'day Mate!'; } else { echo 'Hello World!'; } ?> Is that an un-escaped single quote I see? Quote Link to comment Share on other sites More sharing options...
ilovetomatoes May 13, 2010 Share ilovetomatoes Member May 13, 2010 echo "Hello World" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.