You could do this like: 1. class clazz { public: int num; };
clazz arr[3] = { clazz(1), clazz(2) }; OR 2. support default constructor with default parameters values or setters. You could not dynamic create arrays with new using the first way. That all I new. Hope this could help you. 2012/7/1 Vincent Cai <w...@cypress.com> > Hi,**** > > ** ** > > I am sorry to post C++ question here.**** > > Hope somebody can help, thanks so much.**** > > ** ** > > Vincent.**** > > ------------------------------ > This message and any attachments may contain Cypress (or its subsidiaries) > confidential information. If it has been received in error, please advise > the sender and immediately delete this message. > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > > -- Cheng Liang <http://about.me/devbean> Nanjing, China http://www.devbean.info from: devb...@devbean.info
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest