int* HT;
int HTc = 500;
HT = new int[HTc] = {-1}; //Fill array with -1
I get the warning:
extended initializer lists only available with -std=c++0x or
=std=gnu++0x
I’ll assume this means it isn’t compatible with the ANSI standard, which my prof. is nuts for.
How else would I do this though?
Use std::fill. It would be better to use a std::vector than a c style array, but just for demonstration: