> 1)
int *data;
void doSomething(*data)
This should be:
void doSomething(int *data)
2)
int data;
void doSomething(&data)
This should be:
void doSomething(int &data)
In the first example you would have to use a pointer-to-int as the
function argument, in the second, you could use an int as an argument
and the function would automatically use a reference. If you used
const:
void doSomething(const int &data)
that would protect the int from being changed outside of the function.
Your function name looks like a Java style name. Are you a Java
programmer?
-FA