unsigned char range is 0~255, when using cout output to display the number words remember to make an int forced conversion can be, otherwise are the output of the character, in addition to all the comparison converted to an integer in the comparison bar
In addition, in recent projects due to the multiple use of dynamic memory allocation, the code uses two allocation methods to briefly say.
Regardless of the standard of the two, the assignment with new does not have to be multiplied by sizeof, but if it is allocated by malloc, it is not done according to this criterion, and we use unsigned when malloc allocates it. Char to allocate not multiplied by sizeof also passed, is because sizeof (unsigned char) is exactly 1, so happened to avoid this error, so after allocating memory as far as possible with new bar, with malloc remember by sizeof.
New int [Vbm->width * vbm->height]; // samplesVbm->nummatch = (int32_t*)mallocsizeof(int32_t)); // How many samples match
c++unsigned Char Output problem