https://www.cnblogs.com/FKdelphi/p/6026859.html
相關資料:
http://bbs.csdn.net/topics/330194465
#include <string>
將string庫包含到當前編譯單元中.
using std::string;
一個編譯單元會有很多域...一般,這個只會出現在單獨的域中.這樣做是避免三件事.
1, 將std裏的所有名字暴露在各個域中, 例如 把using namespace std; 寫在全局中.
2, 在using std::string的域中,就可以直接使用string, 少打std::了,圖方便