Lesson 1: Hello World
Ok, lets get started with the first lesson. This lesson will mainly tell you what a program requires and the printf command.
Code::Blocks: http://sourceforge.net/projects/codeblocks/files/Binaries/13.12/Windows/codeblocks-13.12mingw-setup.exe/download
Ok, so when you create a new program you will most likely see this:
int main() {
printf("Hello World");
return 0;
}
So each program you will EVER make requires the main function. As you can see in this program we start off with it, then we go down a few lines till we get to the printf command. printf basicly prints words out, the output of this program would be: Hello World. And if we go down one more line we see the return command, it is commenly used to stop a program.