//procedure bubel sort
void bubel_as(int data[],int jum){
for (int i=1; i<=jum; i++){
for (int j=jum; j>=i+1; j--){
if (data[i]>=data[j]){
tukar(&data[i],&data[j]);
}
}
}
cout<<"Data setelah di urut :";
for (int i=1; i<=jum; i++){
cout<
}
}
Minggu, 17 Januari 2010
Procedure Bubble Sort di C++
Minggu, Januari 17, 2010
Galiarta
No comments
0 comments:
Posting Komentar