Answer the question
In order to leave comments, you need to log in
Are there correct settings for Visual Studio 2015?
Kind people. I want to ask. Can you please tell me if there are instructions for setting up Visual Studio 2015?
Here's what I'm talking about:
1) Somehow I saw on the forum, the dude wrote that they say that Studio has a very useful tool, or a guide, with which it becomes easier to develop, that it is generally a very cool thing. They say you download a book on programming, install Studio and this thing is always at hand. Can you tell me where in the studio to open it?
2) And here's something else I came across. Many C++ books write programs like this:
#include <iostream.h>
int main()
{
cout << "Hello World!\n";
return 0;
}
Answer the question
In order to leave comments, you need to log in
1) Most likely meant MSDN. To open it (local or web - it doesn't matter) - on the method that causes you questions, press f1.
2) What project was created? c++ console app? The second error is very confusing...
3) The console disappears immediately because it has finished its work. In order not to disappear immediately, you need to request some kind of input from the user (getch() for example).
The file is not named iostream.h, but simply iostream. Try like this:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!\n";
return 0;
}
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!\n";
return 0;
}
#include "stdafx.h"
#include <iostream>
int main()
{
std::cout << "Hello World!\n";
return 0;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question