essential c++ 后面注释

[复制链接]
查看11 | 回复1 | 2011-2-20 00:24:45 | 显示全部楼层 |阅读模式
#include
#include
#include
#include
using namespace std;
void print(int i)
{
cout<<" "< iset;
iset.insert(1);
iset.insert(2);
iset.insert(3);
vector ivec(iset.begin(),iset.end());
cout<<"in vector:";
for_each(ivec.begin(),ivec.end(),print);
cout<<"\n";
return 0;
}
看了几遍,不是输入错误问题,但是错误看不懂 求教!

回复

使用道具 举报

千问 | 2011-2-20 00:24:45 | 显示全部楼层
= =b麻烦LZ把报错贴出来好吗?我这里完美通过有没有可能你的编译器版本过低?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行