This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.foo { | |
position: absolute; | |
left: 50%; | |
transform: translateX(-50%); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//选择排序 | |
template <typename ElemType> | |
static void SelectionSort(ElemType list[], int start, int end) { | |
for (int i = start; i <= end - 1; ++i) { | |
int max = i; | |
for (int j = i + 1; j <= end; ++j) | |
if (list[j] > list[max]) max = j; | |
if (max != i) | |
Swap<ElemType>(list[i], list[max]); | |
} |