Tuesday, October 20, 2015

Name must be a namespace name error in Visual C++

Following error was observed in Microsoft Visual C++ 2010 edition while using std namespace.

Error: IntelliSense: name must be a namespace name

Problem code:

using namespace std;

Solution:

#include <iostream>
using namespace std;