In order to use strings I need to include the string header, so that its implementation becomes available. But if that is so, why do I still need to add the line using std::string
?
Why doesn't it already know about the string data type?
#include <string>
using std::string;
int main() {
string s1;
}