Minggu, 17 Januari 2010

Procedure Bubble Sort di C++

//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< }
}

0 comments:

Posting Komentar

Twitter Delicious Facebook Digg Stumbleupon Favorites More

Enter your email address to subscribe:

Delivered by FeedBurner

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | SharePoint Demo