string in namespace std does not name a type

The Solution to string in namespace std does not name a type is


You need to

#include <string>

<iostream> declares cout, cin, not string.

~ Answered on 2012-08-07 20:46:10


Most Viewed Questions: