Yarr! I Be The 1337 Cod4r Round These Her Parts...

2»

Comments

  • DrSuredeathDrSuredeath Join Date: 2002-11-11 Member: 8217Members
    <!--QuoteBegin-DOOManiac+Sep 20 2004, 12:59 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (DOOManiac @ Sep 20 2004, 12:59 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> So what did the program do anyway? Just a hello world? <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Wow, "Hello World"

    Those two words bring back some memory.

    *Sniff*
  • BigMadSteveBigMadSteve Join Date: 2003-02-12 Member: 13472Members
    <!--QuoteBegin-Dr.Suredeath+Sep 20 2004, 01:50 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Dr.Suredeath @ Sep 20 2004, 01:50 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-DOOManiac+Sep 20 2004, 12:59 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (DOOManiac @ Sep 20 2004, 12:59 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> So what did the program do anyway? Just a hello world? <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    Wow, "Hello World"

    Those two words bring back some memory.

    *Sniff* <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    The first program <i>always</i> seems to be "Hello World". It was the first one I was taught at college, the first one I read about in an online tutorial and it was at the start of my C++ book. <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo-->
  • coriscoris Join Date: 2003-07-08 Member: 18034Members, Constellation
    I think we should do a new "Hello world" but with acronyms, hi2u world
  • jumpingjodajumpingjoda Join Date: 2003-12-14 Member: 24367Members, Constellation, Reinforced - Shadow
    I think every human beeing can code a hello world in any language in less then 4 minutes.... without any keyboard.

    If you wanted this magnificent result, you could use HTML ftw.

    </bash>
  • SkulkBaitSkulkBait Join Date: 2003-02-11 Member: 13423Members
    <!--QuoteBegin-Quaunaut+Sep 20 2004, 12:30 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Quaunaut @ Sep 20 2004, 12:30 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Their not going to lock it.

    ...btw, anyone remember the command to make the thing wait until I press a key to close the program? Menchoning Dev C++ got me coding again <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo--> <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    C version:
    <!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->#include <conio.h>

    int main(void)
    {
      while(!kbhit())
      {
         //wait for key press
      }
       return 0;
    }
    <!--c2--></td></tr></table><div class='postcolor'><!--ec2-->

    C++ version:

    <!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->

    #include <iostream>

    int main(void)
    {
      char temp;
      cin.get(temp);
    }

    <!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
  • HibameHibame Join Date: 2003-11-16 Member: 22974Members, Reinforced - Shadow
    Theres a command, some one told me but I forgot it. Dam this bad memory <!--emo&???--><img src='http://www.unknownworlds.com/forums/html//emoticons/confused-fix.gif' border='0' style='vertical-align:middle' alt='confused-fix.gif' /><!--endemo-->

    And I usto use dev-c++ but i couldnt get the hl sdk to compile it....
  • Crono5Crono5 Join Date: 2003-07-22 Member: 18357Members
    edited September 2004
    I think it's part of the STD library, system("PAUSE"); ?

    I don't know, I'll reboot and check it out.

    EDIT: Yep.

    #include <stdlib.h>

    system("PUASE");

    Only works in console apps.
  • AdvisorAdvisor Join Date: 2003-01-10 Member: 12104Members
    You can copy all your code and goto an institute or university and compile it there. They usually have the complete program.
  • GeminosityGeminosity :3 Join Date: 2003-09-08 Member: 20667Members
    MFC is notorious for rewriting file libraries in your computer which is a <b>bad</b> thing. Generally MFC is best avoided at all costs =s

    I never made a "hello world" program... all mine were called "the end is nigh" <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
  • AdvisorAdvisor Join Date: 2003-01-10 Member: 12104Members
    edited September 2004
    Oh yeah I remember writing this program in grade 9 using C++.

    #include <iostream>
    using namespace std;

    int main()
    {

    cout << "Hello World!!\n";
    return 0;

    }

    My life floated around the science and computers. Look below...

    Programming History:

    Grades 2-6: Q Basic
    Grade 7-12: Turbo Pascal
    Grade 9 -12: C++, "HTML", javascript
    Langara College: C/C++, Java, CGI, Orcale
    Applied Computer Science Technology
    BCIT: electrical and computing engineering technology

    I am going to chose an option of <ul><li>Automation and Instrumentation Technology</li><li>Computer Control Technology</li><li>Electrical Power and Industrial Control Technology</li><li>Wireless Communications and Computer Networks Technology</li></ul>next semester
    with then Masters at UBC or SFU
  • SkulkBaitSkulkBait Join Date: 2003-02-11 Member: 13423Members
    <!--QuoteBegin-Crono5788+Sep 20 2004, 04:31 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Crono5788 @ Sep 20 2004, 04:31 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I think it's part of the STD library, system("PAUSE"); ?

    I don't know, I'll reboot and check it out.

    EDIT: Yep.

    #include <stdlib.h>

    system("PUASE");

    Only works in console apps. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    That only works in Windows and Dos. My versions will work in all environments <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
  • MantridMantrid Lockpick Join Date: 2003-12-07 Member: 24109Members
    <!--QuoteBegin-Crono5788+Sep 20 2004, 01:31 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Crono5788 @ Sep 20 2004, 01:31 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I think it's part of the STD library, system("PAUSE"); ?

    I don't know, I'll reboot and check it out.

    EDIT: Yep.

    #include <stdlib.h>

    system("PUASE");

    Only works in console apps. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Most things in the STD library make it burn when I pee.
  • QuaunautQuaunaut The longest seven days in history... Join Date: 2003-03-21 Member: 14759Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin-Advisor+Sep 20 2004, 04:16 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Advisor @ Sep 20 2004, 04:16 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Oh yeah I remember writing this program in grade 9 using C++.

    #include <iostream>
    using namespace std;

    int main()
    {

    cout << "Hello World!!\n";
    return 0;

    }

    My life floated around the science and computers. Look below...

    Programming History:

    Grades 2-6: Q Basic
    Grade 7-12: Turbo Pascal
    Grade 9 -12: C++, "HTML", javascript
    Langara College: C/C++, Java, CGI, Orcale
    Applied Computer Science Technology
    BCIT: electrical and computing engineering technology

    I am going to chose an option of <ul><li>Automation and Instrumentation Technology</li><li>Computer Control Technology</li><li>Electrical Power and Industrial Control Technology</li><li>Wireless Communications and Computer Networks Technology</li></ul> with then Masters at UBC or SFU <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Right now I'm in a class thats going through everything Oracle offers, next year Cisco. All the while, learning C++, and during the Oracle one I'm also getting to do Java. And while I'm in class, I get to do C++ too, being they encourage any and all learning of code in the class.

    ...all for 2 and a half hours in high school <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->
  • Dorian_GrayDorian_Gray Join Date: 2004-02-15 Member: 26581Members, Constellation
    edited September 2004
    I've done PHP, Java, C++, Perl, Bash shell scripts, Batch files, small bits of ASM, and a few other languages at high school. Mind you only Java and C++ were in a computer science course, the rest were in English class when I was supposed to be doing some English crap (I get high marks whether I do the work or not, so I figure theres no point in doing it). I never do hello world programs though. So pointless. Most people, even if they know squat about the language, could figure it out.

    For example:
    <?php
    echo "Hello World";
    ?>

    Yep real hard to tell what that does. Probably reformats your computer and steals some of them megahertz while its at it. I never see the point to typing that out, saving it, compiling it/uploading it/whatever else needs to be done, just to see "Hello World" on your screen. I think my first C++ program was something that looked like DOS and no matter what command you entered, it pretended to format your C drive, and if you ever answered no to one of the questions, it said that was an invalid response and asked you to enter (y/n) again <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo--> Left it running on my friend's computer, he was so freaked out <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo-->

    Edit: sad thing is that at the time, that seemed "neat".
  • SkulkBaitSkulkBait Join Date: 2003-02-11 Member: 13423Members
    <!--QuoteBegin-Dorian Gray+Sep 20 2004, 08:11 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Dorian Gray @ Sep 20 2004, 08:11 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I've done PHP, Java, C++, Perl, Bash shell scripts, Batch files, small bits of ASM, and a few other languages at high school. Mind you only Java and C++ were in a computer science course, the rest were in English class when I was supposed to be doing some English crap (I get high marks whether I do the work or not, so I figure theres no point in doing it). I never do hello world programs though. So pointless. Most people, even if they know squat about the language, could figure it out. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Thats not always true though. Check out this Hello World written in IBM 370 assembly:

    <!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->**************************************************************
    **  HELLO - Program to print "Hello, World" on device 009   **
    **************************************************************
    HELLO    CSECT
            STM   R14,R12,12(R13)    Save Registers
            LR    R12,R15            Load Base Register
            USING HELLO,R12          Establish Addressability
            SSM   =X'00'             Disable Interrupts
            SPKA  0(0)               Disable storage protection
            LA    R2,CCWS            Store pointer to CCW chain
            ST    R2,CAW             ... in Channel Address Word
            LA    R2,9               Put device address in R2
    CLEARIO  TIO   0(R2)              Test for device busy
            BC    CC1+CC2,CLEARIO    Wait until device not busy
            BC    CC3,IOERROR        Abort if device error
    STARTIO  SIO   0(R2)              Start I/O to the console
            BC    CC1,CSWSTORE       A CSW Has been stored
            BC    CC2,CLEARIO        Device busy. Wait until clear
            BC    CC3,IOERROR        Abort if device error
    TESTIO   TIO   0(R2)              Wait for I/O completion
            BC    CC2,TESTIO         Busy, Wait for completion
            BC    CC3,IOERROR        Abort if device error
    CSWSTORE CLI   CSW+4,CE           Channel End w/o Device End?
            BE    TESTIO             Yes - wait for Device End too
            TM    CSW+4,BY           Channel Busy?
            BO    TESTIO             Yes - Keep Waiting
            TM    CSW+4,DE           Device End?
            BNO   IOERROR            No - The CSW is bad
    SUCCESS  SSM   =X'FF'             Reenable Interrupts
            LM    R14,R12,12(R13)    Restore Caller's Registers
            XR    R15,R15            Clear Return Code
            BR    R14                Return to Caller
    IOERROR  SSM   =X'FF'             Reenable Interrupts
            LM    R14,R12,12(R13)    Restore Caller's Registers
            LA    R15,4              Set Return Code 4
            BR    R14                Return to Caller
            DS    0D                 CCW must be doubleword aligned
    CCWS     CCW   X'09',MESSAGE,X'20',L'MESSAGE
    MESSAGE  DC    C'Hello, World'
    CSW      EQU   X'40'         Address of Channel Status Word
    BY       EQU   X'10'         Channel Busy
    CE       EQU   X'08'         Channel End
    DE       EQU   X'04'         Device End
    CAW      EQU   X'48'         Address of Channel Address Word
    R2       EQU   2             Register 2
    R12      EQU   12            Register 12
    R13      EQU   13            Register 13
    R14      EQU   14            Register 14
    R15      EQU   15            Register 15
    CC0      EQU   8             Condition Code 0
    CC1      EQU   4             Condition Code 1
    CC2      EQU   2             Condition Code 2
    CC3      EQU   1             Condition Code 3
            END<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
  • DOOManiacDOOManiac Worst. Critic. Ever. Join Date: 2002-04-17 Member: 462Members, NS1 Playtester
  • Sniper_ChanceSniper_Chance Join Date: 2002-12-11 Member: 10549Members
  • That_Annoying_KidThat_Annoying_Kid Sire of Titles Join Date: 2003-03-01 Member: 14175Members, Constellation
    edited September 2004
    I used to dabble in C++, my teacher is still obscenley leet, she had literally grown up when computers were the size of closets and small rooms, not to mention she has an eye for the code. Codewarrior pro FTW

    [edit]
    also if your bored step back and look at this thread from a standpoint of someone who has no clue about computers
    [/edit]
  • AdvisorAdvisor Join Date: 2003-01-10 Member: 12104Members
    Dorian Gray, you reminded me of what forgotten, PERL and BSS!!! I might have still forgotten some on my list, but they will come back... Are any you ppl British Columbians? That's where I learnt all the stuff quoted in my last posting. Show pride in your schools.
  • HibameHibame Join Date: 2003-11-16 Member: 22974Members, Reinforced - Shadow
    <!--QuoteBegin-That Annoying Kid+Sep 21 2004, 10:44 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (That Annoying Kid @ Sep 21 2004, 10:44 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I used to dabble in C++, my teacher is still obscenley leet, she had literally grown up when computers were the size of closets and small rooms, not to mention she has an eye for the code. Codewarrior pro FTW

    [edit]
    also if your bored step back and look at this thread from a standpoint of someone who has no clue about computers
    [/edit] <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Codewarrior is EVIL
Sign In or Register to comment.