Rewriting reference as pointers

So I have a homework problem that requires me to rewrite a function that uses reference variables as parameters into one that uses pointers as parameters instead. Here's the code:
1
2
3
4
5
6
7
int doSomething(int &x, int &y)
{
int temp = x;
x = y * 10;
y = tmep * 10;
return x + y;
}


Where do I begin? And what are the actual steps for converting them in other cases?
First step is to know how pointers work. Change the parameters to pointers and make the rest work.
Here you go (I hope no Edit button thread activists are around):

http://www.cplusplus.com/forum/beginner/56535/
Topic archived. No new replies allowed.