VC上使用C++中的vector为什么总警告一堆乱码???

来源:百度知道 编辑:UC知道 时间:2024/05/20 01:35:04
这一堆 '@' 符号是什么???
d:\program files\microsoft visual studio\vc98\include\vector(48) : warning C4786: '??0?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QAE@IABV
?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@ABV?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@1@@Z' : identifier was truncated to '255' characters in the browser information
D:\我的资料\桌面\VC_TEMP\tt\tt.cpp(21) : see reference to class template instantiation 'std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,str
uct std::char_traits<char>,class std::allocator<char> > > >' being compiled
d:\program files\microsoft visual studio\

楼上的都不对。
请在你的程序最头上加
#pragma warning (disable : 4786)
这些恼人的警告就没了。
VC++6.0下包含了一些STL文件就是这样的。

应该是vc++的问题,重新装下试试吧。确认下你的安装盘是否损坏。并确认下你的程序没有问题

程序出错了,重装vc+即可。

重装一下试试