sort 函数的问题
程序运行,错误提示为:
1>d:\vtkplatform(huleiceshi-wjc)\meshgrid\meshgrid.cpp(197) : error C2914: “std::sort”: 因为函数参数不明确,所以无法推导出 模板 参数
1>d:\vtkplatform(huleiceshi-wjc)\meshgrid\meshgrid.cpp(197) : error C2914: “std::sort”: 因为函数参数不明确,所以无法推导出 模板 参数
1>d:\vtkplatform(huleiceshi-wjc)\meshgrid\meshgrid.cpp(197) : error C2784: “void std::sort(_RanIt,_RanIt,_Pr)”: 无法从“std::_Vector_iterator<_Ty,_Alloc>”为“_RanIt”推导 模板 参数
1> with
1> [
1> _Ty=PAIR,
1> _Alloc=std::allocator<PAIR>
1> ]
1> e:\program files\microsoft visual studio 8\vc\include\algorithm(2899) : 参见“std::sort”的声明
1>d:\vtkplatform(huleiceshi-wjc)\meshgrid\meshgrid.cpp(197) : error C2780: “void std::sort(_RanIt,_RanIt)”: 应输入 2 个参数,却提供了 3 个
1> e:\program files\microsoft visual studio 8\vc\include\algorithm(2751) : 参见“std::sort”的声明
1>d:\vtkplatform(huleiceshi-wjc)\meshgrid\meshgrid.cpp(433) : error C2914: “std::sort”: 因为函数参数不明确,所以无法推导出 模板 参数
1>d:\vtkplatform(huleiceshi-wjc)\meshgrid\meshgrid.cpp(433) : error C2914: “std::sort”: 因为函数参数不明确,所以无法推导出 模板 参数
1>d:\vtkplatform(huleiceshi-wjc)\meshgrid\meshgrid.cpp(433) : error C2784: “void std::sort(_RanIt,_RanIt,_Pr)”: 无法从“std::_Vector_iterator<_Ty,_Alloc>”为“_RanIt”推导 模板 参数
1> with
1> [
1> _Ty=PAIR,
1> _Alloc=std::allocator<PAIR>
1> ]
1> e:\program files\microsoft visual studio 8\vc\include\algorithm(2899) : 参见“std::sort”的声明
1>d:\vtkplatform(huleiceshi-wjc)\meshgrid\meshgrid.cpp(433) : error C2780: “void std::sort(_RanIt,_RanIt)”: 应输入 2 个参数,却提供了 3 个
1> e:\program files\microsoft visual studio 8\vc\include\algorithm(2751) : 参见“std::sort”的声明
这是别人的程序,应该已经验证过,为什么我运行会出现这样的错误提示呢?哪位同学给说说啊,万分感谢。