I just downloaded Visual C++ and I am trying it out now but I got a problem. I can not seem to find how to create a new console application. I keep getting errors when I try to build an application. Next to that when I open a new file the example code that it displays for the "hello wolrd!" program looks nothing like C++ coding to me. I am trying to build the following program.
Code:
#include<iostream>
#include<string>

using std::cout;
using std::cin;
using std::endl;
using std::string;

int main()
{
	cout << "Please enter your name: ";
	string name;
	cin >> name;
	cout << endl;
	cout << "Your name is " << name;

	return 0;
}
I know I did not code anything wrong because I can build it in CodeBlocks. Maybe someone could help me out here and explain to me step by step how I should build a console application coded in C++ in Visual C++ 2010 because I seem to be doing something wrong. And please explain why the example code looks nothing like C++ to me. It uses thefollowing statement for example instead of "std::cout" "console.writeline. And why it includes a file called "#include "stdafx.h"". I never seen that header file in my book and thought those statements where included in the header "iostream".