News
Forums
Search
Members
Sign Up
My Code Newbie
Username
Password
Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET
C.N. Friends
Planet Rome
Link to Us!
Code Newbie
» The Rule Of Three
by Valmont
Page 2 of 17
< Previous
Preface
Index
Scope
Initialisation vs Assignment
Intro to Custom String Class
The Copy Constructor Intro
Copy Contructor Problem and Solution
The Assignment Operator Intro
Assignment Operator: double deletion
Assignment Operator: memory leaks AND double deletion
Assignment Operator: hints on implementation
Assignment Operator: a good start
Assignment Operator: seemingly correct debug demo
Assignment Operator: correctness problem in detail
Assignment Operator: debug demo of the problem
Assignment Operator: solved with words
Rule Of Three: everything correctly implemented
Next >
(Login to remove green text ads)
Index
Index
Topic (page)
The Rule of Three (3)
Initialization Versus Assignment (4)
The Concept of the String Class (5)
The Copy Constructor (6 & 7)
The Assignment Operator (8)
Double Deletion (9)
Memory Leaks AND Double Deletion (10)
The Assignment Operator: hints on implementation (11)
Moving On With The String Class: operator= (12)
The Assignment Operator: alsmost correct, debugging demo (13)
The Assignment Operator: correctness problem (14)
The Assignment Operator: the problems, debugging demo (15)
The Assignment Operator: the correct version (16)
The Assignment Operator: the correct implementation (17)
(printer friendly format)
Page 2 of 17
< Previous
Preface
Index
Scope
Initialisation vs Assignment
Intro to Custom String Class
The Copy Constructor Intro
Copy Contructor Problem and Solution
The Assignment Operator Intro
Assignment Operator: double deletion
Assignment Operator: memory leaks AND double deletion
Assignment Operator: hints on implementation
Assignment Operator: a good start
Assignment Operator: seemingly correct debug demo
Assignment Operator: correctness problem in detail
Assignment Operator: debug demo of the problem
Assignment Operator: solved with words
Rule Of Three: everything correctly implemented
Next >
Rate This Article
1
2
3
4
5
6
7
8
9
10
Copyright © 2000-2008,
Milano Interactive
Web Hosting provided by
Portal 360 Web Hosting