Thread: Lets have a little competition

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #14
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Cut n' paste #2: "name this language" challenge

    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'
    bonus points if you have a compiler for this "mystery" language and can find the typo(s)...
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sorry, lets try again(C++ Help)
    By SNTRL in forum C++ Programming
    Replies: 6
    Last Post: 09-10-2010, 12:56 AM
  2. Case Competition Help !
    By kashahyah in forum C Programming
    Replies: 10
    Last Post: 04-10-2008, 10:19 AM
  3. Competition
    By siavoshkc in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 09-21-2006, 02:30 PM
  4. Competition?
    By Govtcheez in forum A Brief History of Cprogramming.com
    Replies: 40
    Last Post: 09-14-2001, 08:58 AM