C++ (Qt)struct{ int iVar; double dVar; QList<int> listVar; // исправил опечатку. было lVar1 int iVar1;}Test;
C++ (Qt)typedef struct{ int ii; double dd; } iidd; void test::runMem(){ for ( int i = 0; i < 1000; i++ ) { QList<iidd*> lQue; for ( int j = 0; j < 1000; j++ ) { iidd* que = new iidd; lQue.append(que); }/* for ( int k = 0; k < 10000; k++ ) delete lQue.at(k);*/ }}
C++ (Qt)while (!list.isEmpty()) delete list.takeFirst();
C++ (Qt)qDeleteAll(list); list.clear();
C++ (Qt)for ( int k = 0; k < lQue.count(); k++ ) delete lQue.at(k);