Minggu, 17 Januari 2010

Procedure Bubble Sort Ascending di c++

//procedure bubel sort ascending
void bubel_ds(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< }

}

2 comments:

niek mengatakan...

thx bwt sourch nya..... klo bisa skalian nulisnya lengkap... fullllll

Galiarta mengatakan...

thx nik,,,,, masih belajar nie,,,

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