Q:

var DB*; in C++

My professor sent back a short email:
int x = 100;
var HT*;
HT = new int[x];

Firstly:
Compiling the code (with other stuff around it to make it "work"):
error: 'var' does not name a type.
Second:
This is for hash tables. Apparently this is the way to create an array of variable size according to the ANSI standard (G++ has extensions that we can't use or he'll shoot us).
Any ideas?

A:

var HT* is not valid C++ syntax (looks C#-inspired to me;-) -- int *HT is how, in C++, you declare HT to be a pointer to integer (which can hold the result of an array-new -- you'll have to remember to use delete[] and not plain delete when you're done, though!).

