Code Newbie
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
  Code Newbie
    forums

Go Back   Code Forums > Code Newbie > Code Newbie News

Reply
 
LinkBack Thread Tools Display Modes
Old 03-16-2005, 12:02 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
The Rule Of Three - Valmont's Latest Article

Valmont has done it again, he has created the largest Code Newbie Article in existance. Below is a bit of the preface:

Preface
The Rule Of Three is an absolute must to understand for any C++ programmer. It deserves an own chapter, hence the tutorial. It covers the copy constructor, operator=() and the destructor as a combination to fullfill some basic and fundemantal requirements when it comes to building a class (or C++ struct) where members allocate memory in a dynamic way. We are going to setup the minimal basics of a String class to work with.

The neat thing about this tutorial is that it covers these three things in detail. Another plus is that this site supports multiple pages and images. So things are nicely grouped an made visible in vivid colors where needed. No chapter in a book in your local store will do that.

Actually, this tutorial is an excerpt from my tutorial on operator overloading. But the goal of the operator overloading tutorial is slightly different then the goal of this tutorial. This tutorial isn't much about general skill building. It intended for sheer concrete skill building. The “how” and “why” are well covered. But strictly within the framework of the Rule Of Three.
As opposed to the operator overloading tutorial, where a global skill building process is going on.

There is a little catch with this tutorial, and a “complete” operator overloading tutorial: they both need eachother to a certain extent. My advice is to learn the very basics of operator overloading first. Chapter 1 of operator overloading tutorial is enough already. However, if you are familiar with the very basics, then you're set most likely.

Read the Article Here
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code Newbie Article Writting Contest ( coming very soon ) sde Lounge 1 11-09-2004 06:59 AM


All times are GMT -8. The time now is 08:22 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting