I'm new to C++, and I'm studying the dinamically allocating arrays. I've found the following example in the C++ primer:
size_t n = get_size();
int *p = new int[n];
for (int *q=p; q!=p+n); ++q)
/* process the array */
get_size() is a function that is recurrent through the manual, but it isn't explained anywhere. Is get_size() a function that I must define myself? If it is the case, why in the example the function takes no arguments?