posts - 11,  comments - 0,  trackbacks - 0

在使用string类型时,添加了<string>头文件,编译后出现

'string' : undeclared identifier错误,究其原因主要是没有给出命名空间。

正确的是:

 #include <string> 
using   namespace   std;

posted on 2010-07-04 10:37 果冻 阅读(3042) 评论(0)  编辑 收藏 引用
<2025年4月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

常用链接

留言簿

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜