Untitled
public text v1 · immutable
int size_a = 5000;
for(int x=0; x<10; x++)
{
const int size = size_a;
float v[size]; // antaa virheet: expected constant expression sekä cannot allocate array of constant size 0 sekä 'v' : unknown size
float k=0;
for (int i=0; i<size; i++)
{
v[i] = k;
k=k+0.1;
}
// v[i]=rand()%1000;
S.selectionSort(v,size);
S.display();
size_a+=5000;
}