标题:大家帮忙看看,错在哪里,编译不通过!
取消只看楼主
zoo008
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2010-7-11
结帖率:100%
已结贴  问题点数:0 回复次数:0 
大家帮忙看看,错在哪里,编译不通过!
#include <iostream>
using namespace std;
int main()
{
string s("Hello World!!");
string::size_type punct_cnt=0;
for (string::size_type index=0;index!=s.size();++index)
{
  if (ispunct(s[index]))
   ++punct_cnt;
}
cout <<punct_cnt
   <<" punctuation characters in"
   <<s
   <<endl;
return 0;
}
搜索更多相关主题的帖子: 编译 
2010-08-26 16:56



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-316883-1-1.html




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

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