Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
C++ Tutorial
Operator Overloading 54 codes
Home
C++ Tutorial
Operator Overloading
1 + is overloaded for int + Point
2 + is overloaded for Point + int
3 + is overloaded using friend function
4 A custom extractor ()
5 A custom inserter ()
6 Add a range check to for overloaded [] operator
7 An example of overloading new and delete globally
8 Class level ostream operator and istream operator
9 Class ostream operator
10 Complex logic in ostream operator
11 Conversion operator
12 Define -, + and = for the ThreeD class
13 Demonstrate prefix and postfix ++
14 Design the operator[ ]( ) function in such a way that the [ ] can be used on both the left and right sides of an assi
15 Double cast operator
16 Friend operator
17 Friend ostream operator for private fields
18 Ignore
19 Istream operator with data check
20 Lvalues and rvalues
21 Make op-- a friend; use reference
22 Operator+( ) function
23 Ostream and istream operator for a class
24 Overload & operator
25 Overload ( ) for Point
26 Overload () operator for two values
27 Overload (inserter)
28 Overload [] operator for class
29 Overload assignment for Point
30 Overload comma for Point
31 Overload for integer + object and object + integer
32 Overload operator plus (=)
33 Overload ostream and istream operator
34 Overload prefix ++ for Point
35 Overload the ++ unary operator
36 Overload the postfix version of ++
37 Overloaded delete operator relative to Pointer
38 Overloaded new operator relative to Point
39 Overloading
40 Overloading ( ) for the loc class
41 Overloading ++
42 Overloading De-reference operator
43 Overloading new and delete
44 Overloading operators for enumerations
45 Overloading the by showing the equivalence between ob i and obi when operator( ) returns the this pointer.t
46 Overloading the Comma Operator
47 Overloading the copy assignment operator
48 Overloading the increment operator
49 Provide range checking for operator []
50 The overloaded less-than operators with double value
51 The overloaded operator[ ]( ) function returns the value of the array as indexed by the value of its parameter
52 Use a friend to overload
53 Use overloaded +=
54 Using a Friend to Overload ++ or