[Qt-interest] Should I delete the pointer ?
Konrad Rosenbaum
konrad at silmor.de
Sun Jan 16 11:59:13 CET 2011
On Saturday 15 January 2011, Qzi wrote:
> Hi ,all ,! I'm trouble in the issue :
>
> Should I delete the towers[4] ??
>
The answer is in the library of the nearest university. Subscriptions are
usually available to everybody and aren't overly expensive (at least in
Europe). Ask the staff for a C++ book that is usually recommended to first
year CS students. Study it. Make sure to try out and understand all the
examples.
If you are still confused: repeat your question on a general C++ forum, not
on the Qt specific list.
Once you've found the answer to your question proceed to Stroustrup or
another advanced book. Also at that time you may begin to think about
programming GUIs.
In the short term: just try what happens - the results will be interesting
and quite baffling. To make things more readable: make towers an array/stack
of objects and put cout<<"..." or printf(...) statements in the constructor
and destructor.
> *Your biological and technological distinctiveness will be added to our
> own. Resistance is futile.*
On the other hand the borg collective is garbage collected - defective
drones are recycled on a regular basis...
*Designationless drone, return to your maturation chamber. You will comply.*
Be careful with Trek quotes on a geek dominated maillist...
;-)
SCNR,
Konrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110116/2930f019/attachment.bin
More information about the Qt-interest-old
mailing list