cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
What does this mean?
What does this mean?
Dec 10, 2014 at 6:28pm UTC
ApertureScience101
(9)
What does this block of code mean? And what does it do exactly?
1
2
3
4
5
CRectangle::~CRectangle () {
delete
width;
delete
height; }
Dec 10, 2014 at 6:51pm UTC
LB
(13399)
It is the destructor for a class named
CRectangle
.
As for what it does, that depends entirely on how
width
and
height
are defined. They are probably useless pointers and are only dynamically allocated for demonstration purposes.
Topic archived. No new replies allowed.