posts - 11,  comments - 0,  trackbacks - 0
 

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

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

正确的是:

 #include <string> 
using   namespace   std;

posted @ 2010-07-04 10:37 果冻 阅读(3007) | 评论 (0)编辑 收藏
仅列出标题
共2页: 1 2 
<2024年3月>
252627282912
3456789
10111213141516
17181920212223
24252627282930
31123456

常用链接

留言簿

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜