so let's start our series of c plus plus programming with installation of vs code an id what will i use vs code other ids you can use i'll give you some options we'll install that we'll install a compiler we'll set the tvs code editor to run our program will set the compiler will set the path how to set these thing i'll show you step by step how to install from where you can install and everything and we'll simply first of all discuss like what is an id how to use an id why we use an id right different different types of ids what you can use for your writing your programs right but before that just want to tell an interesting information for those who are interested in full stack development yes geeks4geeks has come up with a live course on full stack development designed by industry export just to help you to learn how to develop an industry ready single page web applications and apis using react and node. js and other concepts like aws ci cd etc and it is best suited for students as well as working professional and you will also get a certificate for it and you will also learn how to deploy and maintain an application with the complete devops workflow now what you will learn in this course the first thing is build test and launch sps by mastering react node and various other related technologies multiple deployment methods like aws github pages etc and one major project based on real-world application just to put your theoretical knowledge to use so i think it's a great great idea to go for this course if you are interested in full stack development so the registration link i'll put in the description box of this video and all the other details also you'll find in the description box of this video you can go and check out now let's discuss now first of all what is an ide see it stands for integrated development environment see it is just a software to build other applications right now it contains various tools which developers use into a single graphical user interface it's it is a gui graphical user interface it consists of many tools which developers use which makes the lifesoft developer easy now to to develop some code to develop other applications so what tools it will have what it will consist first is source code editor now see we can write down code in simple uh notepad so notepad plus plus right but why we use an id see it is a just a text editor to write down some code but some other features it is having like syntax highlighting coloring like if a language is having some keyword so that would be highlighted in different color maybe red color pink color specific methods are highlighted in different color so that program would be easy to read right rather than writing in notepad it will give a feature of auto completion like um based on the programming language you're using if suppose i write like system i'm using java system dot out something like this so rather than writing system wrote out dot println you just write system like this and it will suggest you suggestion it will suggest you and you can simply click on this thing if i write like hash i n c so it will suggest you include so rather than writing complete hash include you can just click on that if i write like std something like this it will suggest you stdia your dot edge you can just click on that so it is something like auto completion that we have also already seen when we were writing some program in c language and we've also seen c plus plus also so it is having some extra feature syntax highlighting auto completion debugging and debugging also uh feature this vs sorry the id is having debugger compiler and what it is having toolbar like it's a gui so here we are having toolbar different different options you will be having they are having their own functionality based on the environment in which you are using so what functionalities different different tools i'll show you the toolbar also when you will install the tvs code editor and whenever you write the code it will show you the error if you have missed a semicolon like this so it will suggest you like this is an error missed semicolon or a bracket if you have missed right then it will show you like you have messed up bracket so these features will make you know a difference that's why we are using id nowadays rather than notepad or it's up to you you can use notepad or sublime editor it's up to you it's your service only now different different ids are there you can use see some id ids are there which support multiple languages some are specific to a particular language like eclipse it is for c c plus plus java python many languages it supports netbeans also supports many languages right cc java python javascript etc php ruby right vs code it will also support many other languages c c plus plus java right so many ids are there some are like eclipse i told you netbeans for c plus plus you can use eclipse net beans def c plus plus and code lite c line by jetbrains specifically for you know c plus plus programs code blocks code lite so many ids are there but see personally my favorite is vs code so i will use this thing vs code visual studio code so now we are going to install this thing we'll download it we'll install it will set up everything the path will download a compiler mingw compiler it is just an ide just to write down your code to compile to execute our programs we have to download a compiler as well and then we will set a path so the compiler will download mingw compiler right for c and c plus plus so both you can run c program and c plus my program so how to set for c plus with that also i'll show you so both things will download and install now let's see how to install this thing first we'll download vs code so just open up your favorite browser here you just write down just type visual studio code and the first see the first is uh website is code dot visual studio. com open this link and here you will find out the link download for windows right you can just click on this drop down menu and if you want to download for mac or linux you can just download it the stable release or if you want to see like complete detail then just click on other downloads and it is it would be on 64 bit for 32 bit for arm which system is your is 64 bit or 32-bit according to that you can download for windows linux or mac according to your system i'll uh download for windows 64-bit right if you want to check then simply what you can do you can right-click on this pc go to properties and here you will see see system type is 64-bit operating system right so from here you can check the type of your system so i'll just click on this user installer 64-bit for windows right and see it has started downloading the file and after that it will take few seconds okay that's it now i'm going to click on this i'm going to open this and we will accept the agreement you can just read out this agreement click on next please don't change the path if you are a beginner like this is the part in c in users and this this is the complete path if you want to change you can browse and you can change according to that you can install like in c directory or nd or anywhere you can install but i would recommend if you are a beginner don't change this path just simply click on next and if you want to create a start menu folder you can click on this i mean if you don't want to create a start menu folder you click on this right if you want to create just keep it as it is right now just click on next and i want to create desktop icon click on this i'm just clicking everything you just trade out and if you want to click you can click right add to path add open with code action to the windows explorer file context menu this also i'll show you right now i have just clicked everything now click on next and just simply click on install that's it it will take few seconds so that's it i'm not going to launch it i'm just going to click on finish now it has been finished see one desktop icon is there for we visual studio code now it is just an id to write down the code we need a compiler to compile uh those programs so now we will do what he'll simply search for a compiler generally the the most famous is what mean gw compiler for c and c plus plus so just write down here mean g w mingw compiler that's it and the first is what sourceforge.
net so you can download from this or if you don't want to download from this you can also download like this is mingw. org website from there also you can download you can directly uh open this link osdn. net link download file list menu compiler right i am going to download from the first link sourceforge website would be open and click on download right now your download will start shortly so now it is going to download my mingw but see it's been downloaded i'm going to open it install just click on install please don't change this installation directory it's in c and gw right do not change anything just click on continue and now it's been started and it will take few seconds to download mingw installation manager see processed one one three items of one one three items hundred percent complete so now click on continue right now this installation manager would be open for you guys right now see these are some tools or packages you can see the description by clicking on clicking on this option you can just read out the description right if you click on this you read out the description this would be necessary see what two options would be necessary if you want to uh you know compile your coc plus programs the second one mingw32 base this and this gcc g plus plus right this one click on right click on this mark for installation right click on this mark for installation these two options but this is for you know uh compiling your programs which are written in c plus language this compiler if suppose you want to add a compiler this is for add up language right so you can install this also this is for portrait and this is bottom compiler this is objective c compiler you can install this also right so it depends on you what installation you need right so i am going to select every option here everything mark for installation right just click right click mark for installation right click mark for installation on every option right maybe in future i want to use objective c compiler radar compiler so everything i am going to include if you want to read out description or what are these things you can just click on the thing and below you will get description see like objective c compiler so this package provides mingw implementation implementation of gnu objective c language compiler this is optional component see they have written optional component you can skip it skip it for print this is also optional component right if you wish to compile programs written in foreign language you can click it uh mark for installation you can install it this is also optional component right so that's it now what we will do see now i have selected every package now click on installation and apply changes apply changes apply changes it will ask you okay to proceed yes i'll click apply now it will take some time around 10 to 15 minutes it will take so now it's done extracted all the files and finally after completion this would you will see all changes were successfully applied and you may now close the dialogue so you can close this and that's it now you can close this and you can close this but see if you open your command prompt just c m and it will be opened and see when you will write g plus plus g plus plus is not recognized as an internal or external command although we have installed that g plus plus command gcc compiler but still it is not recognizing because we haven't set the path right where is this g plus plus 5 executable file see just go to this pc c drive in c we have a mingw folder go to this and go to bin now here we have see this g plus plus executable file so now if here you will write down in this path cmd and from here if you open the command prompt now we are here c mingw bin see the path right and if you write down here g plus plus now it is not giving that error it is giving no input file we haven't given input file but it is recognizing g plus plus five because we are in that path right so now in the environment variable we have to set this path it's not like that all the time we have to go to this path particular path c means w bin and then only we can execute this g plus plus command no we don't want this case right so and here if you write g plus plus v e r s i o n version dash dash version so it is going to show you the version 6.
3. 0 it's now running from here right so now we have to set this path right okay now ah the path is where we have this just go to the mingw and bin so this path c mingw bin just ctrl c copy this path see you have to see these steps carefully because many students would this error g plus plus is not recognized as an internal or external command so where to set this just right click on this this pc go to properties now go to advanced system setting environment variables and in environment variable we have user variable and system variable user variable means these variables are for this user only right if in my pc i have two three four users but i am setting the path for this user only if you update this path and system variable means these variables are for all the users right so i am going to update this path right i want that for all the users i am going to update this path fine now just uh no click on this path just go to edit and new we want to add a new path control v there can be multiple path in that path variable right and just click ok that's it now you have to go click on ok ok and that's it now if you have opened already opened your command prompt just close it first and then open command prompt now g plus plus see now it is giving fatal error no input file but it is not giving that g plus plus is not recognized if you write g plus plus and if you want to check the version dash dash v e r s i o and version now it is giving the version 6. 3.