i need a code, that generate a 100 array of size (10) and 100 array of size of(50), and 100 array of size of(100), and 100 array of size of(200),with random numbers, then
for the 1oo array of size(10), in log file

then for each array of the 100 array of size (10) , do the insertion sort , and see the number of comparison .. then calculate the average of the 100 array ..

and so on for the other 100 arrays

You'll need some 2d arrays for that...

is this a homework?

anyway 2d arrays looks like:

int my2darray[100][10];
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.