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.
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.
A 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:
If this happens, that you are not a happy owner of Internet Explorer 10, you will see a warning:
Feel free to press the Continue. Next you have to choose which disk will be installed (can leave, that offer default). Press Set.
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.
After, how everything will be adopted and enforced, we will see a message:
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.
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
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.
Application Wizard will open . Click Next
note Console Application and Empty Project. Next, you can click Finish.
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)
Click Add Class and:
Open Visual C ++ tab and select C ++, and then in the list of templates in the central area, select the C ++ class. Click Add.
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.
It is all – now created a file in your project, in which commands may be written in C ++.
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. ОК.
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)
1 2 3 4 5 6 7 8 9 | #include <iostream> using namespace std; int main() { setlocale(LC_ALL, "rus"); cout << "Мы создали первый проект в MVS2015" << endl; return 0; } |
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”.
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.
how skachyat??
If the matter is still active, in the first paragraph, the second line from the bottom, “on this link”. clicked – go to the link and start downloading the installer
download the same current 2017 and everything is done all the instructions
possible and 2015 download now just follow the link to his office where there are free downloads odes Microsoft
I did everything but the window after pressing ctrl + f5 pops up for a moment with the right samozakryvaetsya,!,! what to do,!?
d.d. like all I did as you said.
one mistake and issued a comment:
unexpected end of file while searching for precompiled header. Perhaps, you forgot to add the directive “#include “pch.h”” a source of.
what to do???
good afternoon,
encounter the error
Severity Code Description Project File Line Suppression State
Error C1010 unexpected end of file while looking for precompiled header. Did you forget to add ‘#include “pch.h”‘ to your source? ConsoleApplication4 c:\userslenovosourcereposconsoleapplication4consoleapplication4mycode.cpp 10
Just set, I created .cpp dock and copy the code in written.
I have the same )
fatal error C1010: unexpected end of file while searching for precompiled header. Perhaps, you forgot to add the directive “#include “pch.h”” a source of
When you open the boot file “vs_community__1691129618.1536046423″ to win 2017 gives an error message , when you try to download an earlier version 2010-2015 when you press ” loading” gives ” К сожалению, could not find a single file to be downloaded. ” how to be ?
Try one or two times
good evening. When you create a project does not display the Win 32. What should be done?
после установки все пошло не так как в инструкции. Help!