- 博客(1)
- 收藏
- 关注
原创 在一个整数数组中,后一个数与前一个数相差的绝对值为1,要在这个数组中搜索指定的数t
#include #include using namespace std; void search(int *a, int begin, int end, int t) //找t在数组a中的位置 { if(begin>end) //参数错误 { cout } else if((begin == end) && (a[begin] != t)) //t不在数组a中
2013-10-13 21:01:01
796
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人