请问在MFC下怎么使用string类? error C2065: 'string' : undeclared identifier 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 #include<string>std::string #include <string>using namespace std; using namespace std;也可以 嗯,可以用了。如果不加#include <string>using namespace std;直接打两个分号:: 然后跳出一个菜单,里面有string,因此我以为string应该是 a member of '`global namespace'' 但是为什么出错 string' : is not a member of '`global namespace''注意是在MFC下的。 #include<string>std::string str = "hello";我感觉最好还是不要用using namespace std;这样不太好,可能影响到其它地方,尤其是在头文件中 关于edit控件自动换行算法,计算量的问题 对话框中打开VIEW HBITMAP的相关问题 关于按钮的一些问题。。请各位帮忙一下。。 [求助]关于自动显示变量类成员 getservbyport/getservbyname 使用時機 VC++6.0调用DLL问题? 在线:对话框显示问题! 请教:Console窗口是怎么弄出来的? 如何取得录音时输入的音量大小?? 急。VS2005安装xtreme toolkitpro遇到的问题 组合框combobox中type为drop list,如何一开始使其就有数据显示
using namespace std;
如果不加
#include <string>
using namespace std;
直接打两个分号:: 然后跳出一个菜单,里面有string,因此我以为string应该是 a member of '`global namespace'' 但是为什么出错 string' : is not a member of '`global namespace''
注意是在MFC下的。
std::string str = "hello";
我感觉最好还是不要用using namespace std;这样不太好,可能影响到其它地方,尤其是在头文件中