首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

VS2008 C++智能提醒看不懂

2012-09-18 
VS2008 C++智能提示看不懂eg:我打出一个map,他就给我跳出maptypename _Kty,typename _Ty,typename _Prle

VS2008 C++智能提示看不懂
eg:
我打出一个map,他就给我跳出
map<typename _Kty,typename _Ty,typename _Pr=less<_Kty>,typename _Alloc=allocator<pair<const _Kty,_typ> > >
看不懂他都提示些什么东西啊

求教

[解决办法]
不能怪智能提示,怪可恶的STL源码。
不过你说的这个应该能看懂吧。

C/C++ code
map<typename _Kty, // key 的类型typename _Ty,  // value 的类型typename _Pr=less<_Kty>, // key 的排序规则typename _Alloc=allocator<pair<const _Kty,_typ> > // 内存配置器的类型 >
[解决办法]
STL就这样,你可以自己封装打印函数,想在调试的时候用watch来看,那是做梦
[解决办法]
探讨
eg:
我打出一个map,他就给我跳出
map<typename _Kty,typename _Ty,typename _Pr=less<_Kty>,typename _Alloc=allocator<pair<const _Kty,_typ> > >
看不懂他都提示些什么东西啊

求教

[解决办法]
探讨

不能怪智能提示,怪可恶的STL源码。
不过你说的这个应该能看懂吧。
C/C++ code

map<typename _Kty, // key 的类型
typename _Ty, // value 的类型
typename _Pr=less<_Kty>, // key 的排序规则
typename _Alloc=allocator<pair<const _Kty,_typ> > // 内……

[解决办法]
探讨

不能怪智能提示,怪可恶的STL源码。
不过你说的这个应该能看懂吧。
C/C++ code

map<typename _Kty, // key 的类型
typename _Ty, // value 的类型
typename _Pr=less<_Kty>, // key 的排序规则
typename _Alloc=allocator<pair<const _Kty,_typ> > // 内……

热点排行