标题:为什么 VC上这个都不行
取消只看楼主
诸葛修勤
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:11
帖 子:549
专家分:1955
注 册:2010-10-28
结帖率:96.55%
已结贴  问题点数:20 回复次数:0 
为什么 VC上这个都不行
程序代码:
#include <iostream>
#include <vector>
#include <list>
using namespace std;

int main()
{
    vector<int> ivec(10, 3);
    list<double> ilist(ivec.begin(), ivec.end());

    typedef list<double>::const_iterator type;
    for (type in=ilist.begin(); in!=ilist.end(); ++in)
    {
        cout << *in << ' ';
    }
    cout << endl;

    return 0;
}
搜索更多相关主题的帖子: color 
2011-05-11 21:17



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




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

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