我正在从网站上阅读 C++ 中的哈希表实现示例并看到了这个。
private:
HashEntry **table;
public:
HashMap() {
table = new HashEntry*[TABLE_SIZE];
for (int i = 0; i < TABLE_SIZE; i++)
table[i] = NULL;
}
我不明白的语法是:
table = new HashEntry*[TABLE_SIZE];
像这样的括号前有星号是什么意思?