腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(6122)
视频
沙龙
2
回答
对于模板: error C4430:缺失类型说明符- int假设。注意: C++不支持默认-int。
c++
编辑:#include<
hash_map
>{CItem mItems; 因此,我认为我做了错误的事情添加typename
无处不在
。
浏览 4
提问于2012-03-21
得票数 0
回答已采纳
2
回答
hash_map
有多普遍?
c++
、
compiler-construction
、
portability
hash_map
和hash_set头还没有包含在C++标准中,但是它们可以作为扩展与我最近使用的所有编译器一起使用。 我想知道在不牺牲可移植性的情况下,我能在多大程度上依赖这些代码。它们
无处不在
吗?您会在您的项目中使用它们吗?
浏览 3
提问于2009-03-03
得票数 4
回答已采纳
1
回答
C++中的嵌套
hash_map
操作似乎与我预期的结果不同
c++
、
hashmap
、
nested
我的C++水平很低,现在正在学习如何在STL语言中使用
hash_map
。当我在下面的玩具代码中测试嵌套的
hash_map
时,它似乎起作用了:#include <iostream>int main(0,temp)); h5.insert(pair<int,
ha
浏览 1
提问于2017-03-19
得票数 0
2
回答
dict.items()返回的列表中元素的顺序是否一直相同?
python
、
dictionary
我使用递归代码,如下所示: ans = 1
hash_map
[key] =
hash_map
[key] - 1
hash_map
[key] = value
浏览 1
提问于2019-10-18
得票数 0
回答已采纳
2
回答
在Mac下找不到
hash_map
标头
c++
、
macos
、
header
#include <iostream>#include <list> #include <ext/
hash_map
>#endif 编译器会说“
hash_map
:没有这样的文件或目录”需要帮助。
浏览 0
提问于2011-02-10
得票数 8
回答已采纳
1
回答
可变地借用循环中的散列映射
rust
、
ownership
我有以下的散列映射、函数和循环:} let mut
hash_map
= HashMap::new(); while i < 10 {func(&mut
hash_map
); i += 1;
浏览 6
提问于2022-06-13
得票数 1
1
回答
自定义hashmap在linux上使用gcc给出编译错误
c++
<K,V>::const_iterator
hash_map
<K,V>::begin() const
hash_map
<K,V>* ptr = const_cast<
hash_map
<K<class K, class V>{return end();
浏览 1
提问于2013-09-25
得票数 1
回答已采纳
1
回答
哈希映射在C++中的实现
c++
、
reinventing-the-wheel
、
hash-map
<T,U>::
hash_map
(unsigned int _size): filled_positions<T,U>::~
hash_map
(){ delete[] hash_entries; typename
hash_map</e
浏览 0
提问于2018-12-03
得票数 0
回答已采纳
1
回答
使用delete时引发的错误调试断言失败_BLOCK_TYPE_IS_VALID
c++
、
new-operator
、
assertions
、
delete-operator
hash_map
<string,string> m_hashDetails; myIteratorwhere I get Debug Assertion Failed
浏览 4
提问于2011-05-10
得票数 0
回答已采纳
3
回答
C++语句分析
c++
、
stl
我看到一段代码,它在程序中创建一个
hash_map
: // allocator of
hash_map
hm1 hm1_Alloc = hm1.get_allocator( );
hash_map
<MyStr, MyInt
hash_map</
浏览 0
提问于2010-07-27
得票数 1
回答已采纳
1
回答
预分配std::map<unsigned长,空*>,如何预分配适当?
stl
、
map
“空闲”指针被推到堆栈上,在使用时弹出,并在从
hash_map
中删除时按下。(这接近256 of内存) 我真正想做的就是将MAX_ORDERS传递到构造函数中:我还尝试了以下几种方法:
hash_map
MapTest;
hash_map<
浏览 3
提问于2012-09-05
得票数 1
2
回答
HackerRank稀疏阵列挑战C#
c#
、
arrays
、
list
有一个输入字符串集合和一个查询字符串集合。对于每个查询字符串,确定它在输入字符串列表中发生的次数。返回结果的数组。函数matchingStrings必须返回一个整数数组,表示字符串中每个查询字符串出现的频率。字符串字符串n-用于搜索字符串查询的字符串数组--查询字符串的数组。intq:每个查询的结果数组List<string> strings = new List<string> { "4", "aba", "baba", "aba"
浏览 4
提问于2022-03-08
得票数 1
2
回答
我可以在添加一些项目的同时从
hash_map
中获取计数吗?
c++
、
multithreading
、
hashmap
对于windows和linux: 在多线程应用程序中,如果我不太关心何时获取
hash_map
的计数,那么我可以安全地调用{
hash_map
}.size(),同时仍然允许其他线程在该{
hash_map
}上添加
浏览 1
提问于2011-06-28
得票数 2
回答已采纳
5
回答
我希望在C++中看到一个
hash_map
示例
c++
、
hashmap
我不知道如何在C++中使用哈希函数,但我知道我们可以使用
hash_map
。仅仅通过包含#include <
hash_map
>,g++就能支持这一点吗?使用
hash_map
的简单示例是什么
浏览 2
提问于2010-02-02
得票数 53
回答已采纳
1
回答
错误:'
hash_map
‘不是'std’的成员
c++
、
g++
、
hashmap
这是我的“计划”:#include <ext/
hash_map
> {error: '
hash_map
' is not a member of 'std'
浏览 0
提问于2013-09-16
得票数 0
回答已采纳
3
回答
您将如何将迭代器作为
hash_map
的关键?
c++
、
visual-studio-2010
、
gcc
您将如何将迭代器作为
hash_map
的关键?例如。vector<string>::iterator i;或
hash_map
<list<string>::iterator, int> h; THis给出了一个错误,因为迭代器没有预先定义为字符串,其他类型是.
浏览 0
提问于2011-09-29
得票数 1
回答已采纳
1
回答
AIX上的
hash_map
?
stl
、
aix
、
hashmap
我正在将一个程序移植到AIX上,该程序在许多地方使用
hash_map
。谢谢。
浏览 1
提问于2009-10-20
得票数 1
回答已采纳
3
回答
跳过C++模板参数
c++
、
templates
C++
hash_map
具有以下模板参数:如何在不指定这将不会编译:(
hash_map
<EntityId, Entity*, , tbb::scalable_allocator>
浏览 0
提问于2009-08-14
得票数 11
回答已采纳
1
回答
C++:为什么我的
hash_map
给我一个像地图一样的有序结果?
c++
、
dictionary
、
hashmap
、
hashtable
、
binary-search-tree
由于映射是使用树实现的,而
hash_map
是使用哈希实现的,所以我创建了一个代码来测试我的映射是否会给出一个有序的结果,而
hash_map
将按照它们注册的顺序打印我的示例。map<string, int> mymap;mymap["abel"] = 2; cout << it->first
浏览 2
提问于2015-04-01
得票数 1
回答已采纳
1
回答
将类属性作为参数传递给函数的JavaScript
javascript
、
function
、
class
、
properties
= null){ current =
hash_map
[current.low_right]= null){ current =
hash_map
[current.top_mid= null){ if (
hash_map
[current.low_mid].status
浏览 2
提问于2020-05-24
得票数 0
回答已采纳
点击加载更多
相关
资讯
矛盾无处不在
无处不在的开源技术
互联网广告无处不在
微软Build 2019,Azure无处不在
带你领略“智造”-无处不在
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券