Anonymous user
Sorting algorithms/Bubble sort: Difference between revisions
→{{header|C++}}: use swap to swap! Also, no args to main() to avoid compiler warnings (gcc -Wall)
m (→{{header|Tcl}}: use better template) |
(→{{header|C++}}: use swap to swap! Also, no args to main() to avoid compiler warnings (gcc -Wall)) |
||
Line 267:
{
done = false ;
}
}
Line 283 ⟶ 281:
int
main()
{
int array[] = { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 } ;
|