CString和string头文件

在使用了MFC库的工程中CString可以直接使用,在没有使用MFC库的工程中加入
#include <atlstr.h>

要使用STL里的string,要加入
#include <string>
注意,不是string.h

然后在代码的前面写
using namespace std;
就可以了

原文地址:https://www.cnblogs.com/hushaojun/p/4920110.html