[Qt-interest] Should I delete the pointer ?

Qzi hotseason007 at gmail.com
Sat Jan 15 05:16:25 CET 2011


 Hi ,all ,! I'm trouble in the issue :

       Should I delete the towers[4] ??

Code here :
---------------------
class hanoi : public QWidget

{

    Q_OBJECT

public:

    /*explicit*/ hanoi(QWidget *parent = 0);

     void TowersOfHanoi(int n,int x,int y,int z);

 private:

    QStack<int> towers[4];

signals:

 public slots:

    void ShowStatus();

 };

------------------

-- 
*Your biological and technological distinctiveness will be added to our own.
Resistance is futile.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110115/8f36dd80/attachment.html 


More information about the Qt-interest-old mailing list