first commit
This commit is contained in:
commit
e4be8d7943
257 files changed
+129570
No files matched your search
@@ -0,0 +1,29 @@
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#pragma hdrstop
|
||||
|
||||
#include "UOrdenacao.h"
|
||||
#include "UFrmEficienciaDeAlgoritmosDeOrdenacao.h"
|
||||
//---------------------------------------------------------------------------
|
||||
#pragma package(smart_init)
|
||||
|
||||
#include<time.h>
|
||||
#include<stdio.h>
|
||||
|
||||
void FnCarregarVetor(){
|
||||
double vAuxiliar;
|
||||
int vFaixaDeValores, vTamanhoDoVetor, vContadorDeNumeros;
|
||||
vFaixaDeValores = edtFaixaDeValores -> Text.ToInt();
|
||||
vTamanhoDoVetor = edtTamanhoDoVetor -> Text.ToInt();
|
||||
Series1->Clear();
|
||||
crtGraficoDeOrdenacao->LeftAxis->Maximum = vFaixaDeValores;
|
||||
delete vVetor;
|
||||
vVetorGerado = 0;
|
||||
vVetor = new(double[vFaixaDeValores]);
|
||||
for (vContadorDeNumeros = 0; vContadorDeNumeros < vTamanhoDoVetor; vContadorDeNumeros++) {
|
||||
//vVetor[vContadorDeNumeros] = 0;
|
||||
vVetor[vContadorDeNumeros] = random(vFaixaDeValores);
|
||||
Series1->AddXY(vContadorDeNumeros,vVetor[vContadorDeNumeros],"",TColor(random(65535)));
|
||||
}
|
||||
vVetorGerado=1;
|
||||
}
|
||||
Reference in new issue
Block a user