void __fastcall TForm3::Button2Click(TObject Sender)
{
int copyData = new int[n];
for(int i=0;i<n;i++)
{ copyData[i] = data[i];
}
SelectionSort(copyData,n);
if (CheckBox2->Checked)
{
for(int i=0;i<n;i++)
{
Form3->Memo2->Lines->Add("data["+IntToStr(i)+"]="+copyData[i]);
}
}
}
这是button2的代码 想要做一个随机数排序
selection sort 那里点击没反应.....
求助一下大佬看看zen'me'hui'shi