[Assorted-commits] SF.net SVN: assorted:[1154] sandbox/trunk/src/cc/operators.cc
Brought to you by:
yangzhang
From: <yan...@us...> - 2009-01-31 08:13:38
|
Revision: 1154 http://assorted.svn.sourceforge.net/assorted/?rev=1154&view=rev Author: yangzhang Date: 2009-01-31 08:13:37 +0000 (Sat, 31 Jan 2009) Log Message: ----------- added some notes to operator demo Modified Paths: -------------- sandbox/trunk/src/cc/operators.cc Modified: sandbox/trunk/src/cc/operators.cc =================================================================== --- sandbox/trunk/src/cc/operators.cc 2009-01-31 08:12:50 UTC (rev 1153) +++ sandbox/trunk/src/cc/operators.cc 2009-01-31 08:13:37 UTC (rev 1154) @@ -1,6 +1,9 @@ #include <iostream> using namespace std; +// This is how you overload the increment/decrement operators; distinguish +// between postfix/prefix with an extra dummy argument. + class c { public: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |