>> SPEAKER 1: Let's write the first of our programs.
We'll use a program called gedit, which is simply a graphical editor.
Not unlike Microsoft Word, with which we can create source code.
Let's first create ourselves a file called Hello.c.
>> I'm going to go up to File, Save.
Type of file name of Hello.c.
Specify that I want to save it in jHarvard's home directory.
And then click Save.
Now the tab atop my file indeed confirms the files Hello.c.
So we're on our way.
>> Let's go ahead and write our first program.
Sharp, include, open bracket, standard I/O.h, close bracket.
Int, main, void, open curly brace, four spaces of indentation, printf,
open parenthesis, open quote, hello comma world, backslash n, close quote.
Close parenthesis.
Semicolon, enter, backspace, backspace, backspace, backspace, and a
closing curly brace.
>> Not the simplest looking program but if you look closely at line five,
that's really the essence of this program.
Once we run this program through a compiler, thereby getting ourselves
some zeros and ones that the computer itself will understand, we will have a
program that quite simply prints to the screen, hello world.
Let's now hit Save.
>> And now let's compile this program and run it.
To do so, we're going to use this black and white window at the bottom
of my screen, otherwise known as a terminal window.
And I'm literally going to type make hello to make a program called hello.
And this program make is actually going to infer from that command that
the file must be called hello.c.
>> I now hit enter.
I see a seemingly cryptic set of commands on the screen, but more on
those another time.
But most importantly, I see another blinking prompt.
At this point, I can type .slash hello, enter.
And there it is, my very first program, hello world.