WEBVTT

00:00.470 --> 00:02.060
In this lecture I want to go over.

00:02.190 --> 00:11.850
Installing the idea that we're going to use for our C++ programs in IEEE stands for integrated developer

00:11.910 --> 00:13.120
environment.

00:13.650 --> 00:22.880
And what we chose for this course is Eclipse as it will work on basically all operating systems.

00:22.930 --> 00:26.260
But before we do that we need to.

00:26.500 --> 00:32.980
Well first you need to do the steps in the previous lectures for your offerings.

00:33.310 --> 00:45.140
So in previous lectures church just articles outlines the steps that you need to take to install your

00:46.340 --> 00:48.080
compiler.

00:48.130 --> 00:51.830
So if you haven't done that you need to do that first.

00:51.850 --> 01:02.080
So was the video code do that in and come back and we'll start with the ID.

01:02.110 --> 01:14.120
So once you've done that you want to go to coracle dot com and put two downloads in the chevre S E or

01:14.120 --> 01:22.550
follow this link and that will take you to this page and the one we're going to download is the jack

01:22.880 --> 01:25.640
j r e the Java runtime unberth.

01:25.720 --> 01:36.830
Is it that and you'll see the list of all the different versions for the different operating systems.

01:36.830 --> 01:46.150
So the one you probably watch if you're on Windows say is E dot DXi is off line version.

01:46.220 --> 01:51.020
So depends on which or what your computer is.

01:51.050 --> 01:55.380
Either X x or x x x.

01:55.900 --> 02:02.290
So hit accept and then choose the one that pertains to your system.

02:02.380 --> 02:05.260
I'm on a Mac so click.

02:05.470 --> 02:10.360
Mac OS X X X for DNG for Linux.

02:10.360 --> 02:13.550
It really depends on your distribution.

02:14.020 --> 02:15.610
So I've already installed it.

02:16.060 --> 02:23.980
So pause the video and download everything and install everything and then come back and we'll go to

02:23.980 --> 02:24.710
the next step.

02:28.740 --> 02:35.270
So the next step is installing the actual ID itself.

02:35.640 --> 02:46.560
And if you go to a clips or you should see the current version that were you want is called Neon.

02:47.290 --> 02:51.110
And you want to hit other package down.

02:51.210 --> 03:03.300
It's so once you go there what we want is the clips ID for a C and C++ developers so that and on the

03:03.300 --> 03:09.380
right you should see again a list of all the different versions.

03:10.580 --> 03:13.550
Pick the one that suits your system.

03:14.750 --> 03:21.150
So I've already downloaded mine Sue.

03:21.240 --> 03:26.010
Once you have it all downloaded should cease and kind of

03:28.960 --> 03:34.600
file some kind and extract it and you'll see the eclipse.

03:35.440 --> 03:36.580
Application.

03:36.730 --> 04:03.720
So me I need to install it into my application Haitian's folder in it run.

04:03.800 --> 04:11.080
So you should see this prompt which tells you where you want all your programs.

04:11.100 --> 04:14.730
He is your workspace.

04:14.980 --> 04:16.110
I'm launch

04:19.000 --> 04:22.520
this year.

04:22.720 --> 04:24.400
Don't want to see this ever again.

04:25.990 --> 04:37.730
OK.

04:37.820 --> 04:41.660
And you should be taken to this page right here.

04:42.320 --> 04:57.070
And the one we always want is the create a new C++ project at in screen name it's purse agreeing

05:00.250 --> 05:05.820
and the one is always in the executable folder and choose.

05:05.890 --> 05:11.280
Hello world C++ project and toolchain.

05:11.280 --> 05:13.050
This is very important.

05:13.050 --> 05:15.510
This is what you did in the previous lectures.

05:15.510 --> 05:25.920
That's why this appears and the one for Windows would be the men GW GCC for Mac.

05:25.990 --> 05:28.030
Is this one Mac OSX.

05:28.030 --> 05:32.980
Gcc in Linux should just be.

05:33.080 --> 05:44.920
It's probably just gcc in so it's ish.

05:45.330 --> 05:47.020
This is a

05:49.920 --> 06:00.090
so here on the left you have all the files that you have for program so you only have one file right

06:00.090 --> 06:00.660
now.

06:01.550 --> 06:02.930
And in that file.

06:02.930 --> 06:06.150
Here is our actual code.

06:06.210 --> 06:08.500
Finally some code.

06:08.760 --> 06:12.380
So the first two lines.

06:12.570 --> 06:19.650
I'm not going to explain them just yet but just know that you need both of these lines in every program.

06:19.650 --> 06:26.850
We're going to be writing to the next line.

06:26.890 --> 06:36.290
Is the inch main open print secret closed print see the and.

06:36.460 --> 06:42.520
This is actually the entry point into our program.

06:42.540 --> 06:53.420
This is where her program starts every time so we will always need this main function so we don't need

06:53.420 --> 06:55.970
this mean function.

06:56.030 --> 07:08.230
So in this mean function we have this thing called C out and C out really just means cancel out so it'll

07:08.250 --> 07:12.030
print something to our consulate's is our output.

07:12.090 --> 07:14.630
We learned about before.

07:14.780 --> 07:19.520
So this is the tool to use to output things so it's outputting.

07:19.520 --> 07:27.330
This is the kind of output operator in the output operator output.

07:27.350 --> 07:30.340
This string says hello world.

07:31.280 --> 07:38.530
And also put in chain yse the outputs together using its operators as well.

07:38.690 --> 07:46.310
And this will just output a new line in so if we build

07:49.440 --> 07:50.160
project

07:53.540 --> 07:53.950
the

08:00.430 --> 08:05.910
should see the console that it's printed out.

08:06.200 --> 08:07.280
Hello world.

08:07.280 --> 08:08.730
Printed out this.

08:09.030 --> 08:14.070
It's called the string is just a string of characters.

08:16.590 --> 08:26.180
In a new line you so in the last line we have in the main function just returns 0.

08:26.200 --> 08:28.740
Don't go over this more.

08:28.840 --> 08:33.820
So don't really worry about it just know that you have to have this return zero at the end.

08:35.090 --> 08:38.790
So don't worry for not following it just yet.

08:38.810 --> 08:46.100
We'll be doing a lot more examples and writing a lot more programs so you'll start understanding how

08:46.100 --> 08:47.410
this all fits together.

08:47.420 --> 08:54.090
So in the next lecture we'll start really diving deep into what this all means.
