• 2022-07-24
    对于选择排序算法的函数原型,可以写作:
    A: template <;typename S, int arraySize>; void selectionSort(S list[], int arraySize) { // do something}
    B: template <;typename S>; void selectionSort(S list[], int arraySize) { // do something}
    C: template <;typename S, int ARRAY_SIZE>; S selectionSort(int list[]) { // do something}
    D: template <;typename S>; void selectionSort(int list[], S arraySize) { // do something}
  • 举一反三