初始化 int 类型数组 data 1 []={1,3,5,7,9,11,13,15,17,19,2,4,6,8,10,12,14,16,18,20}
初始化 int 类型数组 data 1 []={1,3,5,7,9,11,13,15,17,19,2,4,6,8,10,12,14,16,18,20} ,先用任意一种算法对其进行排序,然后提示用户输入一个数字,应用本章的折半查找函数模板找出它的位置。#include<iostream>using namespace std;template<class T>v...