Thread: help

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    3

    help

    i got a book for learn the c languge the source code was

    #include <stdio.h>

    Code:
    int main(void)
    {
          printf("Hello, World!/n");
           return 0;
    }
    -------------------------------------------------------------------------
    plz help!!!

  2. #2
    Registered User
    Join Date
    Apr 2005
    Posts
    134
    I guess there was a typo in your book. The correct printf stmt is

    Code:
    printf("Hello, World!\n");

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > help
    Great topic title - did you think of it yourself?
    http://cboard.cprogramming.com/annou...ouncementid=51

    > i got a book
    Which one?
    There are a lot of books to choose from, and many of them are crap

    > plz help!
    With what?
    You didn't actually ask any questions.

    Apart from "/n" should normally be "\n", it seems a pretty standard opener to me.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Do you want to know what each statement does? How to run the program? How to compile it?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Registered User
    Join Date
    Jul 2005
    Posts
    3

    help what !

    What is your Question!

    everything is Allright !

  6. #6
    Registered User
    Join Date
    Jul 2005
    Posts
    3
    thx alot now i get it!!!!!!!!!!!!!!!!!!!!!!!!

Popular pages Recent additions subscribe to a feed