• 5 months ago
4. Setup Visual Studio
Transcript
00:00In this video, we will see how to download and set up Visual Studio.
00:07Open a browser and search for Download Visual Studio.
00:18First link is from Microsoft, so click on it.
00:22It will take you to the Microsoft website.
00:25Here there are various versions of Visual Studio available.
00:29So you can select the first one that is for community and it is a free version for students
00:36and for researchers.
00:37So select the first one, click on free download.
00:48It will start downloading and it will pop up and ask you to select the type of applications
00:56that you are going to develop.
00:59While it is downloading, it will ask you to select the type of applications that you will
01:02be developing.
01:03So you can select desktop application and sign up by entering your email ID and selecting
01:08your country.
01:09Click on the file for installation.
01:12After sign up, you can start installation.
01:16Here the installation starts.
01:20Yes, here it gives options for what purpose you want to download C++.
01:26So you can select desktop development with C++.
01:31So select this option and click on install.
01:43Now it will install Visual Studio for C++.
01:59Once the installation is over, you have to restart your computer.
02:01So restart it.
02:05So the installation of Visual Studio has finished.
02:08Now let us start Visual Studio and develop one first project.
02:13So go to start menu and here I will type Visual Studio.
02:18So this is a Visual Studio 2019.
02:21So click on this one, it has started.
02:26Now here say create new project.
02:30So select this one, right.
02:32So for every program that you write, I suggest you create a new project that is better and
02:37you can have all the projects in one folder.
02:40Next here you have to select the type of the project.
02:43So on the top left, you will find here the language.
02:47So select it as C++, right.
02:50And the platform is Windows, okay, you need not select that one, just you can leave it
02:55as it is for all platform.
02:56If you scroll down, you will find one option that is console app.
03:01So you have to select console app, right.
03:04So all the applications that we are going to develop are console application.
03:07So you always have to select this one, say next.
03:13Now here you have to mention the project name.
03:16So I'll give the project name as my first and you have to select the path.
03:23So you can select the path and then say create.
03:32So project is created.
03:35And here is the sample code, the code is ready.
03:38So already main function is available.
03:40So you can start typing your program here, right.
03:43Already the basic header file or the standard header file is already included, that is iostream.
03:49And hello world program is automatically generated.
03:53Now here on the right hand side, in the solution explorer, or in this window, if you expand
03:58the source file, you will find this my first CPP.
04:02So this is what the file it is showing here, right.
04:08Now if you want to write a program, let's simply I will write one program with the three
04:12variables A, B, C, and then A assign some value and B assign that some value, then C
04:20assign A plus B.
04:26Now I will display this value also standard std cout C and also std endl.
04:41This will add two numbers and display them.
04:43Now here you can see that something is underlined here with red color.
04:47So this shows it's an error.
04:50So this ID will help you to find the errors wherever you are going wrong.
04:55So it's very programmer friendly.
04:56So here actually I have given single colon, so I should write scope resolution.
05:00So double time I have to write colon.
05:03So now this is perfect.
05:05Now let us see how to run.
05:07So here we can go to build menu option on the top and say build solution or build my
05:13first.
05:14So this my first will be built.
05:15So it will be compiled and executable will be created.
05:20Now for running go to debug option and start without debugging.
05:27So debugger I will be showing you in the next video.
05:31So without debugging just we want to run.
05:33So you can also press control F5 for running the program.
05:36So run this one.
05:37Now here it displays the result that is 30, 10 plus 20 is 30 and also hello world.
05:48So that's it.
05:49You can complete the program and you can remove all these comments if you don't like them.
05:54You can type all your programs.
05:55So for every time for every program I suggest you to create a new project and do it and
06:00let the project name be same as the program that you are doing.
06:03That's all.
06:04If you would like to use visual studio this is how you can set up and start using it.

Recommended