Khác biệt giữa bản sửa đổi của “Sắp xếp nổi bọt”
Nội dung được xóa Nội dung được thêm vào
Đã lùi về phiên bản 31152386 bởi HuuKhanh97 (thảo luận): Ok. (TW) |
|||
Dòng 87:
if(unsortedArray[index] > unsortedArray[index+1]) { //Test if need a swap or not.
temp = unsortedArray[index]; //These three lines just swap the two elements:
unsortedArray[index] =
unsortedArray[index+1] = temp;
}
Dòng 96:
=== '''Viết bằng C++''' ===
#include<iostream>
using namespace std;
Dòng 137:
return 0;
//system("pause");
//code by
}
|