I can understand why we should have this line in a code. That way, you don't have to write std::cout or std::cin, etc.
For std::string though, does the compiler get confused if I include in a c++ code? For variable str below, is it considered as a cstring type of string or a std::string?
include <cstring>
include <string>
using namespace std;
string str;
In other words, if I have "using namespace std" at the beginning of the code, is it safe to write all "std::string" simply as "string"? Also If I have "using namespace std", I do not need "using std::string", right?