here's the code:
class MyClass {
private:
bool** table;
unsigned size;
vector<whatever>* vector;
public:
MyClass(vector<whatever> &vector) : vector(&vector){
size = list.size();
table = new bool*[size];
int i=0;
for(std::vector<Malware *>::const_iterator iter = vector.begin(); iter != vector.end(); ++iter, ++i) {
table[i] = new bool[(*iter)->getNum()]();
}
}
virtual ~MyClass() {
for(unsigned i=0; i < size ; ++i) {
LOGI("i = %d, table[i] = %p, table[i][0]=%d", i, table[i], table[i][0]);
table[i][0] = true;