Lecture overview -- Keyboard shortcut: 'u'  Previous page: Rules for references -- Keyboard shortcut: 'p'  Next page: Constant References -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 2 - Page 17 : 42
Notes about C++
Basic facilities
References - Examples

Here we show a number of examples that illustrate various aspects of references

y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/references/ref-basic.ccA variable becomes a reference to another variable.


y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/references/ref-basic-2.ccNo operator operates on a reference as such.


y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/references/ref1.ccA function with reference parameters and reference return type.


y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/references/ref-fields.ccConvenient references to long/deep fields.


Go to exerciseAnother example/exercise with C++ references
Go to exercisePointers in combination with references
The The C++ Programming Language example on page 99-100 is also illustrative