Results 1 to 10 of 33

Hybrid View

  1. #1
    Player
    Usun's Avatar
    Join Date
    Mar 2011
    Location
    Ul'dah
    Posts
    18
    Character
    Edelin Lin
    World
    Ragnarok
    Main Class
    Gladiator Lv 50
    #include <stdio.h>

    int main(void)
    {
    printf("Hello, World\n");
    return 0;
    }


    . . .


    Nice to meet you.
    (1)

  2. #2
    Player
    Zetonegi's Avatar
    Join Date
    Aug 2011
    Posts
    135
    Character
    Zeto Negi
    World
    Excalibur
    Main Class
    Arcanist Lv 90
    Quote Originally Posted by Usun View Post
    #include <stdio.h>

    int main(void)
    {
    printf("Hello, World\n");
    return 0;
    }


    . . .


    Nice to meet you.
    I'm sorry but K&R didn't use int main(void) it was just main() and they didn't have a return 0; Also they didn't capitalize hello, world. Sadly you've fail your intro to C project because I'm a jerk grader.
    (1)

  3. #3
    Player
    Azurymber's Avatar
    Join Date
    Mar 2011
    Location
    Gridania
    Posts
    1,677
    Character
    Azury Ariella
    World
    Balmung
    Main Class
    Scholar Lv 90
    Quote Originally Posted by Zetonegi View Post
    I'm sorry but K&R didn't use int main(void) it was just main() and they didn't have a return 0; Also they didn't capitalize hello, world. Sadly you've fail your intro to C project because I'm a jerk grader.
    i miss pascal...

    begin
    writeln('Hello World');
    end.

    smd new programming languages!
    (I swear I'm not old)
    (0)
    Mew!

  4. #4
    Player
    Picoman's Avatar
    Join Date
    Mar 2011
    Location
    Gridania
    Posts
    932
    Character
    Pico Man
    World
    Masamune
    Main Class
    Miner Lv 70
    Quote Originally Posted by Azurymber View Post
    i miss pascal...

    begin
    writeln('Hello World');
    end.

    smd new programming languages!
    (I swear I'm not old)
    OH lord, i remember borrowing a copy of Pascal when i was 12, it came on 5 floppy discs, i think thats when i started my 10 year break from programming lol!

    (P.S. im 27)
    (0)
    Download my iPad app on the App Store http://bit.ly/10QMy4C ^^

  5. #5
    Player
    Azurymber's Avatar
    Join Date
    Mar 2011
    Location
    Gridania
    Posts
    1,677
    Character
    Azury Ariella
    World
    Balmung
    Main Class
    Scholar Lv 90
    Quote Originally Posted by Picoman View Post
    OH lord, i remember borrowing a copy of Pascal when i was 12, it came on 5 floppy discs, i think thats when i started my 10 year break from programming lol!

    (P.S. im 27)
    whats a floppy disc ?
    old man!

    joking
    (0)
    Mew!

  6. #6
    Player
    Zetonegi's Avatar
    Join Date
    Aug 2011
    Posts
    135
    Character
    Zeto Negi
    World
    Excalibur
    Main Class
    Arcanist Lv 90
    Quote Originally Posted by Picoman View Post
    OH lord, i remember borrowing a copy of Pascal when i was 12, it came on 5 floppy discs, i think thats when i started my 10 year break from programming lol!

    (P.S. im 27)
    I know a little COBOL and I'm not gonna pick up any more because its stupid
    (0)

  7. #7
    Player
    Azurymber's Avatar
    Join Date
    Mar 2011
    Location
    Gridania
    Posts
    1,677
    Character
    Azury Ariella
    World
    Balmung
    Main Class
    Scholar Lv 90
    Quote Originally Posted by Zetonegi View Post
    I know a little COBOL and I'm not gonna pick up any more because its stupid
    cobol is awesome, look how epic their hello world is:

    000100 IDENTIFICATION DIVISION.
    000200 PROGRAM-ID. HELLOWORLD.
    000300
    000400*
    000500 ENVIRONMENT DIVISION.
    000600 CONFIGURATION SECTION.
    000700 SOURCE-COMPUTER. RM-COBOL.
    000800 OBJECT-COMPUTER. RM-COBOL.
    000900
    001000 DATA DIVISION.
    001100 FILE SECTION.
    001200
    100000 PROCEDURE DIVISION.
    100100
    100200 MAIN-LOGIC SECTION.
    100300 BEGIN.
    100400 DISPLAY " " LINE 1 POSITION 1 ERASE EOS.
    100500 DISPLAY "Hello world!" LINE 15 POSITION 10.
    100600 STOP RUN.
    100700 MAIN-LOGIC-EXIT.
    100800 EXIT.
    (0)
    Mew!