Home
Random
Nearby
Log in
Settings
Donate Now
If Wikipedia is useful to you, please give today.
About Wikipedia
Disclaimers
Search
Cloning (programming): Difference between revisions
Article
Talk
Language
Watch
View history
Edit
Browse history interactively
← Previous edit
Next edit →
Content deleted
Content added
Visual
Wikitext
Revision as of 07:32, 9 January 2008
edit
Torc2
(
talk
|
contribs
)
Extended confirmed users
,
Pending changes reviewers
,
Rollbackers
5,647
edits
m
No edit summary
← Previous edit
Revision as of 22:40, 2 August 2008
edit
undo
88.66.25.1
(
talk
)
use more idiomatic C++
Next edit →
Line 49:
Object * copy = NULL;
copy =
original->clone
new Object
(
original
); // creates a copy of original and assigns its address to copy
</source>