I believe that his problem is he would like to know how to work out the number of elements within an array.

The `sizeof` function will tell you the number of bytes used to store the item that you pass as a parameter. I think I am correct in saying that you can use the following:
Code:
int* temp = new int[sizeof(nums) / sizeof(int)];
Hope that helps.