These codes are parts of project:
//.h file
#ifndef IMAGEFILTER_H
#define IMAGEFILTER_H
#include "filter.h"
class ImageFilter : public Filter {
public:
ImageFilter(int _dimension);
virtual ~ImageFilter();
protected:
int* values;
};
#endif // IMAGEFILTER_H
//.cpp file
#include "imagefilter.h"
ImageFilter::ImageFilter(int _d) : Filter(_d) {
values = new int[_d * _d];
}
ImageFilter::~ImageFilter() {
delete [] values;
}
How should I understand the line :"values = new int[_d * _d];" ? Could you help me ?