Exercises in this lecture   previous -- Keyboard shortcut: 'p'        Go to the notes, in which this exercise belongs -- Keyboard shortcut: 'u'   Alphabetic index   Course home      

Exercise 5.2
A template class with friends


Arrange that operator<< becomes a friend of the template class Point<C>. It may be useful to consult §C.13.2 page 854-855 in The C++ Programming Language.


Solution