Hi

i am trying to write a simple c++ program

why does this code throw up an error

Code:
#include "stdafx.h"

//using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	cout << "C++ is better than C\n";
	
	return 0;
}
the error being
e:\softwaredevelopment\Cpp\myapp101\myapp101.cpp(1 0): error C2065: 'cout' : undeclared identifier
whereas this piece of code works ok

Code:
#include "stdafx.h"

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	cout << "C++ is better than C\n";
	
	return 0;
}