Mine is printed before yours is even compiled. I win.Code:#warning Hello World
Also:
because Prolog is awesome.Code:?- write('Hello world!'), nl.
Mine is printed before yours is even compiled. I win.Code:#warning Hello World
Also:
because Prolog is awesome.Code:?- write('Hello world!'), nl.
Cut n' paste #2: "name this language" challenge
bonus points if you have a compiler for this "mystery" language and can find the typo(s)...Code:+++++ +++++ initialize counter (cell #0) to 10 [ use loop to set the next four cells to 70/100/30/10 > +++++ ++ add 7 to cell #1 > +++++ ++++++ add 11 to cell #2 > +++ add 3 to cell #3 > + add 1 to cell #4 <<<< - decrement counter (cell #0) ] > ++ . print 'H' > + . print 'e' +++ ++ . print 'l' . print 'l' +++ . print 'o' > ++ . print ' ' << +++++ +++++ +++++ . print 'W' > . print 'o' +++ . print 'r' ----- - . print 'l' ----- --- . print 'd' > + . print '!' > . print '\n'
Last edited by MK27; 04-26-2011 at 07:35 PM.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
Last edited by MK27; 04-26-2011 at 08:51 PM.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge