- 论坛徽章:
- 0
|
相关代码:
set<string>::iterator stringIter;
stringIter = stringSet.end()-stringSet.size()/2000;
while (stringIter != stringSet.end())
{
strcpy(buffer, (*stringIter).c_str()); //复制原数据到缓冲区
stringSet1.insert(buffer);
stringIter++ ;
}
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
错误提示:
--------------------Configuration: QGJ1000X28RS10 - Win32 Debug--------------------
Compiling...
QGJ1000X28RS10Dlg.cpp
D:\Program Files\Microsoft Visual Studio\MyProjects\QGJ1000X28RS10\QGJ1000X28RS10Dlg.cpp(24 : error C2676: binary '-' : 'class std::_Tree<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_stri
ng<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::set<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,cl
ass std::allocator<char> > >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >::_Kfn,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char
> > >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >::iterator' does not define this operator or a conversion to a type acceptable to the predefined operator
Error executing cl.exe.
QGJ1000X28RS10.exe - 1 error(s), 0 warning(s) |
|