All pastes #908600 Raw Edit

Untitled

public text v1 · immutable
·published 2008-02-18 16:32 UTC
rendered paste body

		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;

              }