Address of Operator Suffix

Hi

I am new to C++ and am having a problem. I am currently working on references and pointers and I keep coming accross lines like this

1
2
3
4
SimpleCat::SimpleCat(SimpleCat&)
{
	cout << "nCopy constructor calledn";
}


My question is. What does it mean when the & operator is placed after the identifier?

Thank you

David
If you place a word/character after SimpleCat&, it means that that word/character is a reference to SimpleCat. For example:

SimpleCat::SimpleCat(SimpleCat&x)

This means that x is a reference to SimpleCat.
SomeType& is a reference to SomeType
&Variable is the address of Variable.


http://www.cplusplus.com/doc/tutorial/functions2/
http://www.cplusplus.com/doc/tutorial/pointers/
Topic archived. No new replies allowed.