<分区>
所以我正在创建两个不同的多维 vector ,如下所示
string **customdiceArray = new string*[crows];
for(unsigned int i = 0; i<crows;i++){
customdiceArray[i] = new string[ccolumns];
}
但是他们给我内存泄漏。我对两个 vector 进行了如下所示的删除调用。我哪里错了?
//Deallocate create objects
delete diceArray;
diceArray = 0;
//set<string>* words = new set<string>;
delete words;
words = 0;
//string **customdiceArray = new string*[crows];
delete customdiceArray;
customdiceArray = 0;