- i did read what you wrote. since much of your answer was based on a bad paste, i didn't comment further.
- you wrote: "Just because you are using pointers does not mean the laws of the language have changed. In this, r is a local variable containing one value which is an integer." well, i don't want 'r' to be a local integer. i want it to accept the address of 'p' in the scope of exec() and store it in another pointer. thus, i'm not finding any reference in my books or the internet for this answer. hence my reason for posting it here.
- no need to get snitty. if ur finished offering suggestions, then thanks. i'll look for 'thinking in c++' and see what else i can find.
- my professor tells me to use this:
It should read:
PopulateArray(p, size);
:
:
void PopulateArray(int * p, int size)
{
:
}
however, when i compile this, i get: 'PopulateArray': cannot convert parameter 1 from 'int *' to 'int'
so, as you can see, the professor hasn't been much help on this. another reason for this journal.