Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    C noob requires assistance. Remember my username this will happen often!!

    Hi Guys,

    I'm attempting to learn how to program in my freetime, part time between work. This is a problem for me. I don't have the fundamentals of any sort of programming, but have been requently advised that C is the base for all.

    So, I'm trying to compile by second program based off a book called 'C Programming in Easy Steps' and getting a bit lost.

    I've produced this code based of the book, and compiled it with the following result:

    #include <stdioh>

    int main()
    {
    int num=100;
    double pi=3.1415926536;
    printf ( "Integer is %d \n", num );
    return 0;
    }

    vars.c:9:2: warning: no newline at end of file

    What exactly does this mean? Thanks for your help in advance.

    Jess.

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    It means there isn't an extra line after the closing curly brace. Just press enter after the curly brace to add an extra blank line. It isn't really necessary but I usually put it in anyways.
    OracleGuy

  • #3
    New to the CF scene
    Join Date
    Aug 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for your help again oracleguy.

    J.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •