Lecture overview -- Keyboard shortcut: 'u'  Previous page: The standard library namespace -- Keyboard shortcut: 'p'    Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    Basic facilities - slide 42 : 42

Point Exercise - C++ versus C#
This slide contains programs intended for an exercise about similarities and differences between C++ / C# object allocation, access, and parameter passing
Point.cs
The C# Point class.
Prog-no-comments.cs
A C# client class of class Point.
Prog.cs
A C# client class of class Point - with comments that reveal the output.
Go to exercise
Use of class Point in C++
point.h
The C++ Point class - a header file.
point.cc
The C++ Point class - the cc file.
prog1.cc
The C++ client program with pointers - free store allocation.
prog1a.cc
The C++ client program with pointers - stack allocation.
prog2.cc
The C++ client program with references.
prog3.cc
The C++ client program with Point value semantics.