Hi
i am trying to write a simple c++ program
why does this code throw up an error
the error beingCode:#include "stdafx.h" //using namespace std; int _tmain(int argc, _TCHAR* argv[]) { cout << "C++ is better than C\n"; return 0; }
whereas this piece of code works oke:\softwaredevelopment\Cpp\myapp101\myapp101.cpp(1 0): error C2065: 'cout' : undeclared identifier
Code:#include "stdafx.h" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { cout << "C++ is better than C\n"; return 0; }