The basics of programming in c++ for beginners

Installation Microsoft Visual Studio 2015 Express (IDE).

Microsoft Visual Studio development environment – this is such a special program in which we will write command PC, and she will translate these commands(using so-called compiler) to machine language (of ones and zeros), handle and throw us some results of our code. To set up Microsoft Visual Studio Express you have to pass on this link. Scroll down and find the block with the Express for Desktop – that's what we need.установка Microsoft Visual Studio Express

Note: Now Microsoft recommends that you install Visual Studio Community. If you want to install it on the same page.

Only, before clicking the Download button, check the points System Requirements (system requirements for your computer). If they do not meet your, for example you have an older versionWindows, then search the Google Microsoft Visual Studio 2010 Express или Microsoft Visual Studio 2013 Express and select the version, which will be able to work properly on your computer. Well, if all requirements are met – Click Download.

как установить Microsoft Visual Studio 2015 ExpressA little forward, wdexpss_full_RUS.exe file uploaded yet you can find it in the downloads on your computer. Click on it twice and press the Run button:

как установить Microsoft Visual Studio 2015 Express
Installation Microsoft Visual Studio 2015 Express – Fig.2

If this happens, that you are not a happy owner of Internet Explorer 10, you will see a warning:

как установить Microsoft Visual Studio 2015 Express
Installation Microsoft Visual Studio 2015 Express – Figure 3

Feel free to press the Continue.  Next you have to choose which disk will be installed (can leave, that offer default). Press Set.

как установить Microsoft Visual Studio 2015 Expressм
Installation Microsoft Visual Studio 2015 Express – Fig.4

Now have to wait who how many meted out. For those who have SSD – minutes 15, a hard disk take minutes 30 – 40. So you have a little free time. You can relax.

как установить Microsoft Visual Studio 2015 Express
Installation Microsoft Visual Studio 2015 Express – Fig.5

After, how everything will be adopted and enforced, we will see a message:

как установить Microsoft Visual Studio 2015 Express
Installation Microsoft Visual Studio 2015 Express – Fig.6

Then all it installs without problems and can immediately start the program. You will be offered to enter the Microsoft account. If you do not have it – click Register. It is better to immediately register, because if you do not, then through 30 days MVS 2015 Express no longer work,  until you create this account.

Установка Microsoft Visual Studio 2013 Express
Installation Microsoft Visual Studio 2015 Express – Fig.7

After logging in, or check, we finally see the opened development environment. To make sure, it works fine (and it cannot be otherwise), I will show you how to create a new project, to make the code and run.  In the opened MVS click New Project

как установить Microsoft Visual Studio 2015 Express
Installation Microsoft Visual Studio 2015 Express – Fig.8

In this window, click on the Visual C ++, Win32, Win32 Console Application, enter a name for your new project and uncheck the create directory for solution. Click OK.

Установка Microsoft Visual Studio 2013 Express
Installation Microsoft Visual Studio 2015 Express – Fig.9

Application Wizard will open . Click Next

Установка Microsoft Visual Studio 2013 Express
Installation Microsoft Visual Studio 2015 Express – Fig.10

note Console Application and Empty Project. Next, you can click Finish.

Установка Microsoft Visual Studio 2013 Express
Installation Microsoft Visual Studio 2015 Express – Fig.11

The project created. Now in it we need to create a file with the extension .cpp. In it we will write code. This is done so: in the Solution Explorer window, right-click on your project name (I have this ConsoleApplication2)

Установка Microsoft Visual Studio 2013 Express
Installation Microsoft Visual Studio 2015 Express – Fig.12

Click Add Class and:

create a project and files cpp in microsoft visual studio

Open Visual C ++ tab and select C ++, and then in the list of templates in the central area, select the C ++ class. Click Add.

create a project and files cpp in microsoft visual studio

In the wizard, C ++ generic classes, type in the name of the class mycode. Do not change the file names and default settings. Click Finish.

create a project and files cpp in microsoft visual studio

It is all – now created a file in your project, in which commands may be written in C ++.

create a project and files cpp in microsoft visual studio

And, for convenience of work, I suggest you immediately include the numbering of lines of code. To do this click on tools – Options – Text editor – C/C++ and select line numbers. ОК.

Установка Microsoft Visual Studio 2013 Express
Installation Microsoft Visual Studio 2015 Express – рис.15

Further, without going into details, simply copy the code below and paste it into your file with a name mycode.cpp. (All that was contained before it can be removed)

After insertion, press Ctrl + Shift + B – will begin compiling a program.  You should see the bottom line of the window assembly: successfully: 1, with errors: 0 etc. Then press Ctrl + F5 and see the message in the window that opens: “We created the first draft in MVS2015”.

как установить Microsoft Visual Studio 2015 Express
Installation Microsoft Visual Studio 2015 Express – Fig.16

Hope, you will succeed. If you have any questions feel free to ask them in the comments to this article.

There are also many online компиляторов that you can use for simple programming tasks.

186 thoughts on “Installation Microsoft Visual Studio 2015 Express (IDE).

  1. Everything works fine. If you have established a Russian version of Microsoft Visual Studio 2015 and there are those tabs that ordered the author, install an English version from the Microsoft website, additionally install the C / C ++ language (there still exist for additional. install) and he is in the Russian version of the program will work. Visual Studio is a very powerful tool, but it does not automatically ship all programming languages ​​with the download of the program, so I have a little sweat!

  2. I have windows 7 and here these errors Error 1 error C2143: syntax error: lack of “;” before “<" c:\games hello hello nikita.cpp 1 1 Hi
    Ошибка 2 error C4430: missing type specifier – int assumed. Note. C ++ does not support default int c:\games hello hello nikita.cpp 1 1 Hi
    Ошибка 3 error C3872: 0xa0: This symbol can not be used in the identifier c:\games hello hello nikita.cpp 3 1 Hi
    Ошибка 4 error C2144: syntax error: перед "int" требуется ";" c:\games hello hello nikita.cpp 4 1 Hi
    Ошибка 5 error C4430: missing type specifier – int assumed. Note. C ++ does not support default int c:\games hello hello nikita.cpp 4 1 Hi
    Ошибка 6 error C2065: LC_ALL: undeclared identifier c:\games hello hello nikita.cpp 6 1 Hi
    Ошибка 7 error C3861: setlocale: ID is not found c:\games hello hello nikita.cpp 6 1 Hi
    Ошибка 8 error C2065: cout: undeclared identifier c:\games hello hello nikita.cpp 7 1 Hi
    Ошибка 9 error C2065: endl: undeclared identifier c:\games hello hello nikita.cpp 7 1 Hi
    Ошибка 10 error C1075: end of file is detected earlier, чем левая фигурная скобка "{" в "c:\games hello hello nikita.cpp(5)" c:\games hello hello nikita.cpp 9 1 Hi
    11 IntelliSense: include the template is not c:\Games Hello Hello Nikita.cpp 1 1 Hi
    12 IntelliSense: идентификатор "iostream" not determined c:\Games Hello Hello Nikita.cpp 1 10 Hi
    13 IntelliSense: ID is required c:\Games Hello Hello Nikita.cpp 2 1 Hi
    14 IntelliSense: neraspoznannaya token c:\Games Hello Hello Nikita.cpp 3 1 Hi

    1. 1. You have an error in the text of your test program…

      2. Shows the program code – without it pointless to wonder what you have there an error (a lot of them, as it appears).

      3. In general: move in order for the error messages, the first and further… and eliminate them one by one.
      Begin:

      Ошибка 1 error C2143: syntax error: the lack of ";" before "<" c:\games hello hello nikita.cpp 1 1 Hi

      – you have to line number 11 missing sign ; , which should end the operator.
      And so on…

  3. Hello! Установил Visual studio express, I created the project, but I can not create an item. In chapter “the” empty. In Itemtemplates folder (My DocumentsVisual Studio 2015TemplatesItemTemplates) no items to c ++, only with#; javascript; visualbasic; web. How To be?

  4. I did not understand, how to solve the problem with an empty console. SSR within the project, all did well on Instructions 7 times. VS 2015 English-speaking, can this problem ? There is another concomitant Trouble – PC does not install Wine emulator 10 mobile, says no virtualization, although it is included in the BIOS, Maybe it is due ?

    1. Figure 9 you want to say?
      You might just be it C ++ in Visual Studio, you could not take the installation file image.
      And what names you can see in “Templates”?

  5. People! Who does not appear that the figure 14 , the swing and not ekspress kommuniti and there in the Advanced Settings, select the programming language c ++

Leave a Reply

Your email address will not be published. Required fields are marked *