| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 985 人关注过本帖
标题:MFC 用到 vector 遇到了很多问题不知道怎么改?求帮忙。贴中是 VC++6.0 编译 ...
只看楼主 加入收藏
清尘
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2013-9-5
结帖率:66.67%
收藏
 问题点数:0 回复次数:0 
MFC 用到 vector 遇到了很多问题不知道怎么改?求帮忙。贴中是 VC++6.0 编译的错误
--------------------Configuration: Test - Win32 Debug--------------------
Compiling...
ActiveEdgeTable.cpp
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(236) : error C2258: illegal pure syntax, must be '= 0'
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(236) : error C2252: '_VBITS' : pure specifier can only be specified for functions
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(238) : error C2934: 'vector<bool,class std::allocator<unsigned int> >' : template-class-id redefined as a nested 'class' of 'vector<_Ty,_A>'
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(560) : error C2804: binary 'operator ==' has too many parameters
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(564) : error C2804: binary 'operator !=' has too many parameters
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(568) : error C2804: binary 'operator <' has too many parameters
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(572) : error C2804: binary 'operator >' has too many parameters
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(576) : error C2804: binary 'operator <=' has too many parameters
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(580) : error C2804: binary 'operator >=' has too many parameters
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(236) : error C2258: illegal pure syntax, must be '= 0'
        d:\program\图形学\cgwork1017\activeedgetable.h(29) : see reference to class template instantiation 'std::vector<class std::CActiveEdgeTable *,class std::allocator<class std::CActiveEdgeTable *> >' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(236) : error C2252: '_VBITS' : pure specifier can only be specified for functions
        d:\program\图形学\cgwork1017\activeedgetable.h(29) : see reference to class template instantiation 'std::vector<class std::CActiveEdgeTable *,class std::allocator<class std::CActiveEdgeTable *> >' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(238) : error C2934: 'vector<bool,class std::allocator<unsigned int> >' : template-class-id redefined as a nested 'class' of 'vector<class std::CActiveEdgeTable *,class std::allocator<c
lass std::CActiveEdgeTable *> >'
        d:\program\图形学\cgwork1017\activeedgetable.h(29) : see reference to class template instantiation 'std::vector<class std::CActiveEdgeTable *,class std::allocator<class std::CActiveEdgeTable *> >' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(560) : error C2804: binary 'operator ==' has too many parameters
        d:\program\图形学\cgwork1017\activeedgetable.h(29) : see reference to class template instantiation 'std::vector<class std::CActiveEdgeTable *,class std::allocator<class std::CActiveEdgeTable *> >' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(564) : error C2804: binary 'operator !=' has too many parameters
        d:\program\图形学\cgwork1017\activeedgetable.h(29) : see reference to class template instantiation 'std::vector<class std::CActiveEdgeTable *,class std::allocator<class std::CActiveEdgeTable *> >' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(568) : error C2804: binary 'operator <' has too many parameters
        d:\program\图形学\cgwork1017\activeedgetable.h(29) : see reference to class template instantiation 'std::vector<class std::CActiveEdgeTable *,class std::allocator<class std::CActiveEdgeTable *> >' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(572) : error C2804: binary 'operator >' has too many parameters
        d:\program\图形学\cgwork1017\activeedgetable.h(29) : see reference to class template instantiation 'std::vector<class std::CActiveEdgeTable *,class std::allocator<class std::CActiveEdgeTable *> >' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(576) : error C2804: binary 'operator <=' has too many parameters
        d:\program\图形学\cgwork1017\activeedgetable.h(29) : see reference to class template instantiation 'std::vector<class std::CActiveEdgeTable *,class std::allocator<class std::CActiveEdgeTable *> >' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(580) : error C2804: binary 'operator >=' has too many parameters
        d:\program\图形学\cgwork1017\activeedgetable.h(29) : see reference to class template instantiation 'std::vector<class std::CActiveEdgeTable *,class std::allocator<class std::CActiveEdgeTable *> >' being compiled
D:\program\图形学\CGWORK1017\ActiveEdgeTable.cpp(28) : error C2039: 'size' : is not a member of 'vector<class std::CActiveEdgeTable *,class std::allocator<class std::CActiveEdgeTable *> >'
D:\program\图形学\CGWORK1017\ActiveEdgeTable.cpp(29) : error C2676: binary '[' : 'class std::vector<class std::CActiveEdgeTable *,class std::allocator<class std::CActiveEdgeTable *> >' does not define this operator or a conversion to a type acceptab
le to the predefined operator
D:\program\图形学\CGWORK1017\ActiveEdgeTable.cpp(41) : error C2039: 'push_back' : is not a member of 'vector<class std::CActiveEdgeTable *,class std::allocator<class std::CActiveEdgeTable *> >'
DrwaBYT.cpp
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(236) : error C2258: illegal pure syntax, must be '= 0'
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(236) : error C2252: '_VBITS' : pure specifier can only be specified for functions
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(238) : error C2934: 'vector<bool,class std::allocator<unsigned int> >' : template-class-id redefined as a nested 'class' of 'vector<_Ty,_A>'
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(560) : error C2804: binary 'operator ==' has too many parameters
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(564) : error C2804: binary 'operator !=' has too many parameters
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(568) : error C2804: binary 'operator <' has too many parameters
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(572) : error C2804: binary 'operator >' has too many parameters
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(576) : error C2804: binary 'operator <=' has too many parameters
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(580) : error C2804: binary 'operator >=' has too many parameters
        f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(584) : see reference to class template instantiation 'std::vector<_Ty,_A>' being compiled
f:\编\fill.h(53) : see reference to class template instantiation 'std::vector<class CLine,class std::allocator<class CLine> >' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(564) : error C2804: binary 'operator !=' has too many parameters
        d:\program\图形学\cgwork1017\fill.h(53) : see reference to class template instantiation 'std::vector<class CLine,class std::allocator<class CLine> >' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(568) : error C2804: binary 'operator <' has too many parameters
        d:\program\图形学\cgwork1017\fill.h(53) : see reference to class template instantiation 'std::vector<class CLine,class std::allocator<class CLine> >' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(572) : error C2804: binary 'operator >' has too many parameters
        d:\program\图形学\cgwork1017\fill.h(53) : see reference to class template instantiation 'std::vector<class CLine,class std::allocator<class CLine> >' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(576) : error C2804: binary 'operator <=' has too many parameters
        d:\program\图形学\cgwork1017\fill.h(53) : see reference to class template instantiation 'std::vector<class CLine,class std::allocator<class CLine> >' being compiled
f:\编程语言工具\c\vc\microsoft visual studio\vc98\include\vector(580) : error C2804: binary 'operator >=' has too many parameters
        d:\program\图形学\cgwork1017\fill.h(53) : see reference to class template instantiation 'std::vector<class CLine,class std::allocator<class CLine> >' being compiled
d:\program\图形学\cgwork1017\fill.h(55) : error C2872: 'std' : ambiguous symbol
d:\program\图形学\cgwork1017\fill.h(56) : error C2872: 'std' : ambiguous symbol
d:\program\图形学\cgwork1017\fill.h(57) : error C2872: 'std' : ambiguous symbol
d:\program\图形学\cgwork1017\testview.h(118) : error C2872: 'std' : ambiguous symbol
D:\program\图形学\CGWORK1017\TestView.cpp(224) : error C2039: 'push_back' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(595) : error C2039: 'push_back' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(819) : error C2039: 'size' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(819) : error C2039: 'size' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(823) : error C2039: 'size' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(824) : error C2676: binary '[' : 'class std::vector<class CPoint,class std::allocator<class CPoint> >' does not define this operator or a conversion to a type acceptable to the predefined operator
D:\program\图形学\CGWORK1017\TestView.cpp(825) : error C2039: 'size' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(828) : error C2039: 'clear' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(830) : error C2039: 'size' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(832) : error C2039: 'size' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(833) : error C2039: 'clear' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(838) : error C2039: 'clear' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(845) : error C2039: 'size' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(845) : error C2039: 'size' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(849) : error C2039: 'size' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(850) : error C2676: binary '[' : 'class std::vector<class CPoint,class std::allocator<class CPoint> >' does not define this operator or a conversion to a type acceptable to the predefined operator
D:\program\图形学\CGWORK1017\TestView.cpp(851) : error C2039: 'size' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(854) : error C2039: 'clear' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(856) : error C2039: 'size' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(858) : error C2039: 'size' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(859) : error C2039: 'clear' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(864) : error C2039: 'clear' : is not a member of 'vector<class CPoint,class std::allocator<class CPoint> >'
D:\program\图形学\CGWORK1017\TestView.cpp(864) : fatal error C1003: error count exceeds 100; stopping compilation
Generating Code...
执行 cl.exe 时出错.

Test.exe - 1 error(s), 0 warning(s)

搜索更多相关主题的帖子: microsoft reference include 编程语言 visual 
2014-05-10 23:43
快速回复:MFC 用到 vector 遇到了很多问题不知道怎么改?求帮忙。贴中是 VC++6. ...
数据加载中...
 
   



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

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