...

View Full Version : C noob requires assistance. Remember my username this will happen often!!



J. of KYC
08-31-2009, 11:52 AM
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.

oracleguy
08-31-2009, 04:05 PM
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.

J. of KYC
09-01-2009, 12:57 PM
Thanks for your help again oracleguy.

J.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum