Compile Errors

hello I was just seeing if my visual studio would compile correctly on my new pc and it keeps on saying that I am having errors even though I have done this many times before and dont see any errors

1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include <string>

int main() {

	using namespace std;

	cout << "Hello There!";

}

please tell me what I am doing wrong
Last edited on
There is nothing wrong with your code, but it is easy to select the wrong type of template when creating a new project.

Make sure you choose the Empty Project template, and add your main.cpp source file manually.

Also, if you are not already, consider using Visual Studio 2015 - it has the best C++11/C++14 support out of all the Visual Studio versions.
Last edited on
thanks LB i got it working
Topic archived. No new replies allowed.