I am writing a program and this error crashes:
error C2065: 'cout': undeclared identifier;
What could be the reason?
Here is the program:
#include <iostream> using namespace std; #include "stdafx.h" void main() { int a, b ; cout << "Enter f-st n-bre" ; cin >> a ; cout << "second"; cin >> b ; cout << "sum is " << a+b << '\n'; }