stutters August 1, 2008 Share stutters GC Alumni August 1, 2008 use it or lose it. 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 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? 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 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 Link to comment Share on other sites More sharing options...
Unclean August 1, 2008 Share Unclean Member August 1, 2008 Response.Write("hello world"); Link to comment Share on other sites More sharing options...
dwEEziL August 1, 2008 Share dwEEziL Member August 1, 2008 Y HALO THAR WURLD 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. 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. 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"); 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 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 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" 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 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 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? 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. 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 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 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 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 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 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 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? Link to comment Share on other sites More sharing options...
ilovetomatoes May 13, 2010 Share ilovetomatoes Member May 13, 2010 echo "Hello World" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now