#include <iostream>
#include <map>using namespace std;typedef std::map<int, char/*,std::greater<int>*/ > MYMAP;int main()
{
//Create the map object;
MYMAP charMap; //Populate the map with values.
charMap[1] = 'A';
charMap[4] = 'C';
charMap[3] = 'E';
charMap[2] = 'D';
charMap[5] = 'B'; //Display the contents of the map.
std::cout << "Contents of map:" << std::endl;
MYMAP::iterator iter;
for(iter = charMap.begin();
iter != charMap.end(); ++iter)
{
std::cout << (*iter).first << "-->";
std::cout << (*iter).second << std::endl;
} //Erase the map's second element.
iter = charMap.begin();
charMap.erase(++iter); //Display the contents of the map.
std::cout << "Contents of map:" << std::endl;
for(iter = charMap.begin();
iter != charMap.end(); iter++)
{
std::cout << (*iter).first << "-->";
std::cout << (*iter).second << std::endl;
} return 0;
}提示:
warning C4786: 'std::reverse_bidirectional_iterator<std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::all
ocator<char> >::iterator,std::pair<int const ,char>,std::pair<int const ,char> &,std::pair<int const ,char> *,int>' : identifier was truncated to '255' characters in the debug information
c:\documents and settings\administrator\×ÀÃæ\н¨Îļþ¼Ð\aaa.cpp(44) : warning C4786: 'std::reverse_bidirectional_iterator<std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::all
ocator<char> >::const_iterator,std::pair<int const ,char>,std::pair<int const ,char> const &,std::pair<int const ,char> const *,int>' : identifier was truncated to '255' characters in the debug information
c:\documents and settings\administrator\×ÀÃæ\н¨Îļþ¼Ð\aaa.cpp(44) : warning C4786: 'std::pair<std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::iterator,s
td::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::iterator>' : identifier was truncated to '255' characters in the debug information
c:\documents and settings\administrator\×ÀÃæ\н¨Îļþ¼Ð\aaa.cpp(44) : warning C4786: 'std::pair<std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::const_iter
ator,std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::const_iterator>' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(182) : warning C4786: 'std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::~_Tree<int,std::pair<in
t const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(162) : warning C4786: 'std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::_Tree<int,std::pair<int
const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(236) : warning C4786: '__ehhandler$?insert@?$_Tree@HU?$pair@$$CBHD@std@@U_Kfn@?$map@HDU?$less@H@std@@V?$allocator@D@2@@2@U?$less@H@2@V?$allocator@D@2@@std@@QAE?AU?$pair@Viterator@?$_Tree@HU
?$pair@$$CBHD@std@@U_Kfn@?$map@HDU?$less@H@std@@V?$allocator@D@2@@2@U?$less@H@2@V?$allocator@D@2@@std@@_N@2@ABU?$pair@$$CBHD@2@@Z' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(236) : warning C4786: '__unwindfunclet$?insert@?$_Tree@HU?$pair@$$CBHD@std@@U_Kfn@?$map@HDU?$less@H@std@@V?$allocator@D@2@@2@U?$less@H@2@V?$allocator@D@2@@std@@QAE?AU?$pair@Viterator@?$_Tre
e@HU?$pair@$$CBHD@std@@U_Kfn@?$map@HDU?$less@H@std@@V?$allocator@D@2@@2@U?$less@H@2@V?$allocator@D@2@@std@@_N@2@ABU?$pair@$$CBHD@2@@Z$0' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\utility(21) : warning C4786: 'std::pair<std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::iterator,boo
l>::pair<std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::iterator,bool>' : identifier was truncated to '255' characters in the debug information
Linking...
#include <map>using namespace std;typedef std::map<int, char/*,std::greater<int>*/ > MYMAP;int main()
{
//Create the map object;
MYMAP charMap; //Populate the map with values.
charMap[1] = 'A';
charMap[4] = 'C';
charMap[3] = 'E';
charMap[2] = 'D';
charMap[5] = 'B'; //Display the contents of the map.
std::cout << "Contents of map:" << std::endl;
MYMAP::iterator iter;
for(iter = charMap.begin();
iter != charMap.end(); ++iter)
{
std::cout << (*iter).first << "-->";
std::cout << (*iter).second << std::endl;
} //Erase the map's second element.
iter = charMap.begin();
charMap.erase(++iter); //Display the contents of the map.
std::cout << "Contents of map:" << std::endl;
for(iter = charMap.begin();
iter != charMap.end(); iter++)
{
std::cout << (*iter).first << "-->";
std::cout << (*iter).second << std::endl;
} return 0;
}提示:
warning C4786: 'std::reverse_bidirectional_iterator<std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::all
ocator<char> >::iterator,std::pair<int const ,char>,std::pair<int const ,char> &,std::pair<int const ,char> *,int>' : identifier was truncated to '255' characters in the debug information
c:\documents and settings\administrator\×ÀÃæ\н¨Îļþ¼Ð\aaa.cpp(44) : warning C4786: 'std::reverse_bidirectional_iterator<std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::all
ocator<char> >::const_iterator,std::pair<int const ,char>,std::pair<int const ,char> const &,std::pair<int const ,char> const *,int>' : identifier was truncated to '255' characters in the debug information
c:\documents and settings\administrator\×ÀÃæ\н¨Îļþ¼Ð\aaa.cpp(44) : warning C4786: 'std::pair<std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::iterator,s
td::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::iterator>' : identifier was truncated to '255' characters in the debug information
c:\documents and settings\administrator\×ÀÃæ\н¨Îļþ¼Ð\aaa.cpp(44) : warning C4786: 'std::pair<std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::const_iter
ator,std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::const_iterator>' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(182) : warning C4786: 'std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::~_Tree<int,std::pair<in
t const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(162) : warning C4786: 'std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::_Tree<int,std::pair<int
const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(236) : warning C4786: '__ehhandler$?insert@?$_Tree@HU?$pair@$$CBHD@std@@U_Kfn@?$map@HDU?$less@H@std@@V?$allocator@D@2@@2@U?$less@H@2@V?$allocator@D@2@@std@@QAE?AU?$pair@Viterator@?$_Tree@HU
?$pair@$$CBHD@std@@U_Kfn@?$map@HDU?$less@H@std@@V?$allocator@D@2@@2@U?$less@H@2@V?$allocator@D@2@@std@@_N@2@ABU?$pair@$$CBHD@2@@Z' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(236) : warning C4786: '__unwindfunclet$?insert@?$_Tree@HU?$pair@$$CBHD@std@@U_Kfn@?$map@HDU?$less@H@std@@V?$allocator@D@2@@2@U?$less@H@2@V?$allocator@D@2@@std@@QAE?AU?$pair@Viterator@?$_Tre
e@HU?$pair@$$CBHD@std@@U_Kfn@?$map@HDU?$less@H@std@@V?$allocator@D@2@@2@U?$less@H@2@V?$allocator@D@2@@std@@_N@2@ABU?$pair@$$CBHD@2@@Z$0' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\utility(21) : warning C4786: 'std::pair<std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::iterator,boo
l>::pair<std::_Tree<int,std::pair<int const ,char>,std::map<int,char,std::less<int>,std::allocator<char> >::_Kfn,std::less<int>,std::allocator<char> >::iterator,bool>' : identifier was truncated to '255' characters in the debug information
Linking...
解决方案 »
- 怎么实现单独关闭一个进程的声音
- 100分求VC技术内幕中文版下载地址,速度要快,谁先发谁先得
- 为什么差不多的代码,用DLL实现要比EXE大许多?
- 一个工程里面需要两个大致相同的类......
- 菜鸟系列——CTime数据显示在ListCtontrol控件中
- Dllexport和DllImprot的问题
- ORACLE 里面怎样锁一张表.谢谢.
- LINK : fatal error LNK1104: cannot open file "mfc42u.lib"
- Help!!!一个同步问题的两种解决方案,清大家看看哪种更合理。
- 我需要帮助,请问用什么函数使窗口的文本框的内容动态的更新?
- 100分提问,小弟C新手,有个问题困扰。
- 请问调试界面里的step in和step out是什么意思?和step有什么区别
显示4068号警告信息