I have an array with size of n. I want to split this array with size of y. It need to be x times newarray with size of y. I need multidimensional array like myarray[x][y]
. Output need to be myarray[0][0...y],myarray[1][0...y],....myarray[x][0...y]
. How can I do it in qt(by using QList<QByteArray> myarray
) or other solutions?
For example
for (int i = 0; i < y; i++)
{
myarray[i] = array[i];
}