array of QSemaphore
//or
//or (I think the best)
semArr.resize( N );
...
// passing this array to another function:
foo( &semArr[ 0 ], N );
...
{
...
}
QSemaphore semArr[ N ];
//or
QSemaphore * semArr = new QSemaphore[ N ];
//or (I think the best)
std::vector< QSemaphore > semArr;
semArr.resize( N );
...
// passing this array to another function:
foo( &semArr[ 0 ], N );
...
void foo( QSemaphore * semArr, int N )
{
...
}
To copy to clipboard, switch view to plain text mode
slots are just a const pointer to char. That's why an array of slots is an array of const char *:
typedef const char * ConstCharPtr;
ConstCharPtr slotsArr[ N ];
typedef const char * ConstCharPtr;
ConstCharPtr slotsArr[ N ];
To copy to clipboard, switch view to plain text mode
Bookmarks