CString和string头文件

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

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

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

posted on 2015-10-29 12:25  帅胡  阅读(242)  评论(0编辑  收藏  举报

导航