int * temp = new int ;
but this won't work:
int * temp = new int;
I don't understand why. When I try to do the latter I get this error:
"Cannot convert 'int[*]' to 'int*' in initialization.
I would also like to be able to enter in values to the array like this:
temp = 1;
I'm sure if that's the right syntax yet because I can't get the array to be initialized properly. What am I doing wrong?