| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 411 人关注过本帖
标题:[求助】VC++6.0
只看楼主 加入收藏
從霝開匙
Rank: 1
等 级:新手上路
威 望:1
帖 子:79
专家分:0
注 册:2007-8-28
收藏
 问题点数:0 回复次数:1 
[求助】VC++6.0
#include<iostream>
#include<cstring>
int main()
{
int errors=0;
string str("a very long literal string");
for (int ix=0;ix<1000;++ix)
{int len=str.size();
string str2=str;
if (str!=str2)
++errors;
}
cout<<"string class:"
<<errors<<"errors occurrse.\n;
}
error C2065: 'string' : undeclared identifier
搜索更多相关主题的帖子: include errors 
2007-09-11 12:30
yuyunliuhen
Rank: 6Rank: 6
等 级:贵宾
威 望:20
帖 子:1435
专家分:0
注 册:2005-12-12
收藏
得分:0 

#include<iostream>
#include<string>
using namespace std;
int main()
{
//some code
return 0;
}


Go confidently in the  directions of your dreams,live the life you have imagined!Just do it!
It is no use learning without thinking!
2007-09-11 12:40
快速回复:[求助】VC++6.0
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013649 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved