C++ copy constructor syntax: Is ampersand reference to r/l values?
问题 The following is an excerpt from my C++ text, illustrating the syntax for declaring a class with a copy constructor. class Student { int no; char* grade; public: Student(); Student(int, const char*); Student(const Student&); ~Student(); void display() const; }; The copy constructor, as shown here: Student(const Student&); Has an ampersand after the parameter Student. In C, and C++ as-well I believe, the ampersand character is used as a 'address of' operator for pointers. Of course, it is